Ray

data class Ray(var origin: Float3 = Float3(), var direction: Float3)

A ray defined by an origin point and a direction vector.

Constructors

Link copied to clipboard
constructor(origin: Float3 = Float3(), direction: Float3)

Properties

Link copied to clipboard

the direction of the ray; need not be normalized

Link copied to clipboard

the starting point of the ray in world space