11#ifndef CUBBYFLOW_RAY_IMPL_HPP
12#define CUBBYFLOW_RAY_IMPL_HPP
16template <
typename T,
size_t N>
22template <
typename T,
size_t N>
29template <
typename T,
size_t N>
31 : origin(
other.origin), direction(
other.direction)
36template <
typename T,
size_t N>
38 : origin(std::move(
other.origin)), direction(std::move(
other.direction))
43template <
typename T,
size_t N>
46template <
typename T,
size_t N>
49 origin = std::move(
other.origin);
50 direction = std::move(
other.direction);
54template <
typename T,
size_t N>
57 return origin +
t * direction;
Class for N-D ray.
Definition Ray.hpp:26
VectorType direction
The direction of the ray.
Definition Ray.hpp:38
Ray & operator=(const Ray &other)
Copy assignment operator.
VectorType PointAt(T t) const
Returns a point on the ray at distance t.
Definition Ray-Impl.hpp:55
Ray()
Constructs an empty ray that points (1, 0, ...) from (0, 0, ...).
Definition Ray-Impl.hpp:17
Definition pybind11Utils.hpp:22
Matrix< T, Rows, 1 > Vector
Definition Matrix.hpp:719