Vector3d
classin packageklyn.math.geometry
public class Vector3d<NUMBER extends AbstractNumber = Double>:
Represents a 3-dimensional vector with x, y, and z components.
Properties
| Modifier and Type |
Member |
Description |
| public property |
x x as NUMBER:
|
No summary. |
| public propert |
y y y as NUMBER:
|
No summary. |
| public property |
z z as NUMBER:
|
No summary. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
Vector3d |
Constructor for Vector3d. |
Methods
| Modifier and Type |
Member |
Description |
| public |
cross |
Computes the cross product of this vector with another vector. |
| public |
dot |
Computes the dot product of this vector with another vector. |
| public |
magnitude |
Calculates the magnitude of the vector. |
| public |
normalize |
Normalizes the vector. |
| public |
toString |
Returns a string representation of the vector. |
Operators