Ray
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 |
|---|
|
Creates a new Ray with the same values as the |
Public methods |
|
|---|---|
boolean |
Returns true if this ray is equal to the |
final @NonNull Vector3 |
the direction of the ray |
final @NonNull Vector3 |
the origin of the ray |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
Ray
Added in 1.0.0-beta01
public Ray(@NonNull Ray other)
Creates a new Ray with the same values as the other ray.
Public methods
getDirection
Added in 1.0.0-beta01
public final @NonNull Vector3 getDirection()
the direction of the ray