Vector3D class
A 3D vector with x, y, z components.
Properties
Methods
-
cross(
Vector3D other) → Vector3D - Cross product with another vector.
-
dot(
Vector3D other) → double - Dot product with another vector.
-
normalized(
) → Vector3D - Returns a unit vector in the same direction. Returns zero vector if magnitude is zero.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
double scalar) → Vector3D -
operator +(
Vector3D other) → Vector3D -
operator -(
Vector3D other) → Vector3D -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → Vector3D