|
| Ray () |
| Construct a ray through the origin directed along the +x axis.
|
|
| Ray (point_t o, point_t v) |
| Construct a ray through the point o with direction v .
|
|
Ray< T, N > | operator- () const |
| Return a ray pointing in the opposite direction.
|
|
template<index_t M> |
Ray< T, M > | resized () const |
| Change the dimensionality of this Ray.
|
|
point_t | at_distance (T d) const |
| Return the point along this ray's direction, at distance d from the ray origin.
|
|
point_t | at_multiple (T s) const |
| Return the point origin + s * direction .
|
|
point_t | neg () const |
| Return ray pointing in the opposite direction.
|
|
point_t | project (point_t p) const |
| Find the point on the ray nearest to p by orhtogonally projecting p onto it.
|
|
T | sdf (point_t p) const |
| Signed distance from p to the nearest point on the ray.
|
|
T | dist2 (point_t p) const |
| Compute the square of the distance from p to the nearest point on the ray.
|
|
template<typename T, index_t N>
class geom::Ray< T, N >
Ray class.
- Template Parameters
-
T | Coordinate type. |
N | Dimensionality. |