| Modifier and Type | Field and Description |
|---|---|
| public final Vector3 | |
| public final Vector3 | |
| private static final long | |
| pack-priv static Vector3 |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Ray | |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Vector3 | Returns: The out paramThe vector to set to the result out, final float The distance from the end point to the start point. distance)Returns the endpoint given the distance. |
| public int | |
| public Ray | |
| public Ray | |
| public Ray | Returns: this ray for chainingThe x-component of the starting position x, float The y-component of the starting position y, float The z-component of the starting position z, float The x-component of the direction dx, float The y-component of the direction dy, float The z-component of the direction dz)Sets this ray from the given starting position and direction. |
| public Ray | |
| public String |
| direction | back to summary |
|---|---|
| public final Vector3 direction | |
| origin | back to summary |
|---|---|
| public final Vector3 origin | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| tmp | back to summary |
|---|---|
| pack-priv static Vector3 tmp | |
| Ray | back to summary |
|---|---|
| public Ray() | |
| Ray | back to summary |
|---|---|
| public Ray(Vector3 origin, Vector3 direction) Constructor, sets the starting position of the ray and the direction. | |
| cpy | back to summary |
|---|---|
public Ray cpy()
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getEndPoint | back to summary |
|---|---|
| public Vector3 getEndPoint(final Vector3 out, final float distance) Returns the endpoint given the distance. This is calculated as startpoint + distance * direction. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| mul | back to summary |
|---|---|
| public Ray mul(Matrix4 matrix) Multiplies the ray by the given matrix. Use this to transform a ray into another coordinate system. | |
| set | back to summary |
|---|---|
| public Ray set(Vector3 origin, Vector3 direction) Sets the starting position and the direction of this ray. | |
| set | back to summary |
|---|---|
| public Ray set(float x, float y, float z, float dx, float dy, float dz) Sets this ray from the given starting position and direction.
| |
| set | back to summary |
|---|---|
| public Ray set(Ray ray) Sets the starting position and direction from the given ray | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |