Axis3 class

Represents an axis of a 3D coordinate system, internally storing a unit vector that indicates the direction of the axis.

Inheritance
Annotations

Properties

hashCode int
The hash code for this object.
no setterinherited
length double
The length (magnitude) of this vector.
no setterinherited
length2 double
The squared length of this vector.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x double
The x component of the vector.
no setterinherited
y double
The y component of the vector.
no setterinherited
z double
The z component of the vector.
no setterinherited

Methods

apply(double f(double)) Vector3
Applies a function f to each component of this vector and returns a new Vector3.
inherited
cross(Vector3 o) Vector3
Computes the cross product of this vector with another Vector3.
inherited
dot(Vector3 o) double
Computes the dot product of this vector with another Vector3.
inherited
normalize() Vector3
Normalizes this vector.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Converts the Axis to a human-readable string, identifying the Axis by its standard Cartesian coordinate name.
override

Operators

operator *(double s) Vector3
Multiplies this vector by a scalar.
inherited
operator +(Vector3 o) Vector3
Adds this vector with another Vector3.
inherited
operator -(Vector3 o) Vector3
Subtracts another Vector3 from this vector.
inherited
operator /(double s) Vector3
Divides this vector by a scalar.
inherited
operator ==(Object other) bool
Determines whether this vector is equal to another object. Returns true if the other object is an Vector3 with the same components.
inherited
operator unary-() Axis3
Negates the axis vector, effectively representing the axis in the opposite direction.
override
operator unary-() Vector3
Negates this vector.
inherited

Static Properties

invalid Axis3
Represents an invalid axis, often used as a placeholder or error state.
final
X Axis3
Represents the X-axis of a 3D coordinate system.
final
Y Axis3
Represents the Y-axis of a 3D coordinate system.
final
Z Axis3
Represents the Z-axis of a 3D coordinate system.
final