RayInformation

class RayInformation

Ray information class to store relevant data about rays and any intersection found.

Constructors

Link copied to clipboard
fun RayInformation(b: TranslatableBody, x: Double, y: Double, index: Int)

Constructor to store information about a ray intersection.

Link copied to clipboard
fun RayInformation(b: TranslatableBody, v: Vec2, index: Int)

Convenience constructor equivalent to .RayInformation

Properties

Link copied to clipboard
val b: TranslatableBody

Getter for body variable.

Link copied to clipboard
val coordinates: Vec2

Getter for coords variable.

Link copied to clipboard
val index: Int

Getter for index variable.