adds n intervals in direction d with a given length ratio and a given starting interval length.
Parameters
d
the coordinate direction
n
the number of intervals to add
ratio
the ratio of to
h0
the starting interval length (optional)
Given a vector with last element , this will add elements such that for a given ratio and interval length . The first interval length can either be explicitly given or be deduced by multiplying the ratio with the last interval length in the container.
fills a coordinate range in direction d with n intervals according to a geometric series
Parameters
d
the coordinate direction
n
the number of intervals to add
end
the coordinate of the upper border of the range
h
the interval length to start or end with (see below) (optional)
first
true if the given h is to be the first interval, false if last one
Given a vector with last element , this will add elements such that the ratio is fixed throughout the range and , while is the interval length. The first interval length can either be explicitly given or be deduced by taking the last interval length in the container. By setting the optional parameter first to false, the given h can instead be used as last interval length in the range.
adds intervals in direction d according with a given length ratio until a given coordinate is reached
Parameters
d
the coordinate direction
ratio
the ratio of to
end
the coordinate on the right border of the range
h0
the starting interval length (optional)
Given a vector with last element , this will add elements such that - with - for a given ratio and that . The first interval length can either be explicitly given or be deduced by multiplying the ratio with the last interval length in the container.
This resizes the coordinate vector for the given direction to 1. Not using this function will result in 0.0 to be used as a lower bound of the coordinate range.