Ray defined by two Vector3, an orign and a normalized direction.
More...
#include <Ray.h>
|
| AZ_TYPE_INFO (Ray, "{0301a872-5bea-4563-8070-85ed243cb57c}") |
|
| Ray ()=default |
| Default constructor, Creates a ray at the origin with a length of 0.
|
|
| Ray (const AZ::Vector3 &origin, const AZ::Vector3 &direction) |
|
const AZ::Vector3 & | GetOrigin () const |
| returns the origin.
|
|
const AZ::Vector3 & | GetDirection () const |
| returns the normalized direction of the Ray.
|
|
Ray defined by two Vector3, an orign and a normalized direction.
◆ Ray()
Creates a Ray with a starting origin and direction. direction has to be normalized to be valid.
◆ CreateFromLineSegment()
static Ray AZ::Ray::CreateFromLineSegment |
( |
const LineSegment & |
segment | ) |
|
|
static |
Create a ray from a LineSegment where the the start of the line segment is the orign and the direction points toward the ending point.
The documentation for this class was generated from the following file:
- Code/Framework/AzCore/AzCore/Math/Ray.h