|
| 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 .
|
|
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 .
|
|
T | dist2 (point_t p) const |
| Compute the square of the distance from p to the nearest point on the ray.
|
|
Ray< T, N > | operator- () const |
| Return a 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.
|
|
template<index_t M> |
Ray< T, M > | resized () const |
| Change the dimensionality of this Ray.
|
|
T | sdf (point_t p) const |
| Signed distance from p to the nearest point on the ray.
|
|
|
(Note that these are not member symbols.)
|
template<typename T, index_t N> |
Ray< T, N > | operator* (const Isometry< T, N > &xf, const Ray< T, N > &ray) |
| Transform a ray.
|
|
template<typename T, index_t N> |
PointType< T, N >::point_t | operator* (const Ray< T, N > r, T s) |
|
template<typename T, index_t N> |
Ray< T, N > | operator* (const Rotation< T, N > &rot, Ray< T, N > ray) |
| Apply a rotation to a ray.
|
|
template<typename T, index_t N> |
Ray< T, N > | operator* (const Similarity< T, N > &i, const Ray< T, N > &ray) |
| Transform a ray.
|
|
template<typename T, index_t N> |
PointType< T, N >::point_t | operator* (T s, const Ray< T, N > r) |
|
template<typename T, index_t N> |
Ray< T, N > | operator/ (const Ray< T, N > &ray, const Isometry< T, N > &xf) |
| Inverse-transform a ray.
|
|
template<typename T, index_t N> |
Ray< T, N > | operator/ (const Ray< T, N > &ray, const Similarity< T, N > &i) |
| Inverse-transform a ray.
|
|
template<typename T, index_t N> |
Ray< T, N > | operator/ (Ray< T, N > ray, const Rotation< T, N > &rot) |
| Apply the inverse of a rotation to a ray.
|
|
template<typename T, index_t N>
class geom::Ray< T, N >
Ray class.
- Template Parameters
-
T | Coordinate type. |
N | Dimensionality. |