public final class Ray


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

Summary

Public constructors

Ray(@NonNull Ray other)

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

Ray(@NonNull Vector3 origin, @NonNull Vector3 direction)

Public methods

boolean
equals(Object other)

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

final @NonNull Vector3

the direction of the ray.

final @NonNull Vector3

the origin of the ray.

int
@NonNull String

Public constructors

Ray

Added in 1.0.0-alpha01
public Ray(@NonNull Ray other)

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

Ray

Added in 1.0.0-alpha01
public Ray(@NonNull Vector3 origin, @NonNull Vector3 direction)

Public methods

equals

public boolean equals(Object other)

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

getDirection

Added in 1.0.0-alpha01
public final @NonNull Vector3 getDirection()

the direction of the ray.

getOrigin

Added in 1.0.0-alpha01
public final @NonNull Vector3 getOrigin()

the origin of the ray.

hashCode

public int hashCode()

toString

public @NonNull String toString()