Struct Ray3D
- Namespace
- MathAssertions.Geometry3D
- Assembly
- MathAssertions.dll
Half-line in 3-space starting at Origin and extending along
Direction. The direction is intended to be a unit vector but is not
validated; non-unit directions parameterize the same geometric ray with rescaled
t values from intersection methods.
public readonly record struct Ray3D : IEquatable<Ray3D>
- Implements
- Inherited Members
- Extension Methods
Constructors
Ray3D(Vector3, Vector3)
Half-line in 3-space starting at Origin and extending along
Direction. The direction is intended to be a unit vector but is not
validated; non-unit directions parameterize the same geometric ray with rescaled
t values from intersection methods.
public Ray3D(Vector3 Origin, Vector3 Direction)
Parameters
OriginVector3Starting point of the ray.
DirectionVector3Direction the ray extends in. Should be a unit vector for
tvalues returned from intersection methods to represent world-space distance.
Properties
Direction
Direction the ray extends in. Should be a unit vector for
t values returned from intersection methods to represent world-space distance.
public Vector3 Direction { get; init; }
Property Value
Origin
Starting point of the ray.
public Vector3 Origin { get; init; }