Table of Contents

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

Origin Vector3

Starting point of the ray.

Direction Vector3

Direction the ray extends in. Should be a unit vector for t values 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

Vector3

Origin

Starting point of the ray.

public Vector3 Origin { get; init; }

Property Value

Vector3