public class Vector3d<NUMBER extends AbstractNumber = Double>:
Represents a 3-dimensional vector with x, y, and z components.
| Modifier and Type | Member | Description |
|---|---|---|
| public property | xx as NUMBER: |
No summary. |
| public propert | yy y as NUMBER: |
No summary. |
| public property | zz as NUMBER: |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | Vector3d | Constructor for Vector3d. |
| 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 | magnitudemagnitude() as Double: |
Calculates the magnitude of the vector. |
| public | normalizenormalize() as Vector3d: |
Normalizes the vector. |
| public | toStringtoString() as String: |
Returns a string representation of the vector. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | operator*(v1 as Vector, scalar as Double) as Vector3d: | Multiplies this vector by a scalar. |
| public static | operator+(v1 as Vector, v2 as Vector) as Vector3d: | Adds another vector to this vector. |
| public static | operator-(v1 as Vector, v2 as Vector) as Vector3d: | Subtracts another vector from this vector. |