|
Jet
v1.3.3
|
Class for 2-D ray. More...
#include <jet/ray2.h>
Public Member Functions | |
| Ray () | |
| Constructs an empty ray that points (1, 0) from (0, 0). More... | |
| Ray (const Vector2< T > &newOrigin, const Vector2< T > &newDirection) | |
| Constructs a ray with given origin and riection. More... | |
| Ray (const Ray &other) | |
| Copy constructor. More... | |
| Vector2< T > | pointAt (T t) const |
Returns a point on the ray at distance t. More... | |
Public Attributes | |
| Vector2< T > | origin |
| The origin of the ray. More... | |
| Vector2< T > | direction |
| The direction of the ray. More... | |
Class for 2-D ray.
| T | The value type. |
Constructs an empty ray that points (1, 0) from (0, 0).
| jet::Ray< T, 2 >::Ray | ( | const Vector2< T > & | newOrigin, |
| const Vector2< T > & | newDirection | ||
| ) |
Constructs a ray with given origin and riection.
Returns a point on the ray at distance t.
1.8.18