4 * Created on: Apr 25, 2012
8 #ifndef GEOMETRY_RAY2D_H_
9 #define GEOMETRY_RAY2D_H_
15 template<typename Scalar>
19 explicit Ray2D(const Vector2D<Scalar> &directionUnit = Vector2D<Scalar>(), const Vector2D<Scalar> &origin = Vector2D<Scalar>())
20 : direction(directionUnit), origin(origin) { };
23 Vector2D<Scalar> &Direction(void) { return direction; };
24 Vector2D<Scalar> &Origin(void) { return origin; };
25 const Vector2D<Scalar> &Direction(void) const { return direction; };
26 const Vector2D<Scalar> &Origin(void) const { return origin; };
29 Vector2D<Scalar> direction, origin;
35 #endif /* GEOMETRY_RAY2D_H_ */