Class RayDouble
java.lang.Object
gaiasky.util.math.RayDouble
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncpy()booleangetEndPoint(float distance) Deprecated.getEndPoint(Vector3D out, float distance) Returns the endpoint given the distance.inthashCode()Multiplies the Rayd by the given matrix.set(float x, float y, float z, float dx, float dy, float dz) Sets this Rayd from the given starting position and direction.Sets the starting position and direction from the given RaydSets the starting position and the direction of this Rayd.toString()
-
Field Details
-
origin
-
direction
-
-
Constructor Details
-
RayDouble
-
-
Method Details
-
cpy
- Returns:
- a copy of this Rayd.
-
getEndPoint
Deprecated.UsegetEndPoint(Vector3D, float)instead. Returns the endpoint given the distance. This is calculated as startpoint + distance * direction.- Parameters:
distance- The distance from the end point to the start point.- Returns:
- The end point
-
getEndPoint
-
mul
-
toString
-
set
-
set
Sets this Rayd from the given starting position and direction.- Parameters:
x- The x-component of the starting positiony- The y-component of the starting positionz- The z-component of the starting positiondx- The x-component of the directiondy- The y-component of the directiondz- The z-component of the direction- Returns:
- this Rayd for chaining
-
set
-
equals
-
hashCode
-
getEndPoint(Vector3D, float)instead.