class Ray


Represents a ray in 3D space. A ray is defined by an origin point and a direction vector.

Summary

Public constructors

Ray(other: Ray)

Creates a new Ray with the same values as the other ray.

Ray(origin: Vector3, direction: Vector3)

Public functions

open operator Boolean
equals(other: Any?)

Returns true if this ray is equal to the other ray.

open Int
open String

Public properties

Vector3

the direction of the ray.

Vector3

the origin of the ray.

Public constructors

Ray

Added in 1.0.0-alpha01
Ray(other: Ray)

Creates a new Ray with the same values as the other ray.

Ray

Added in 1.0.0-alpha01
Ray(origin: Vector3 = Vector3(), direction: Vector3 = Vector3())

Public functions

equals

open operator fun equals(other: Any?): Boolean

Returns true if this ray is equal to the other ray.

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

direction

Added in 1.0.0-alpha01
val directionVector3

the direction of the ray.

origin

Added in 1.0.0-alpha01
val originVector3

the origin of the ray.