DVVec3 class final

A point or a direction in three dimensions.

Constructors

DVVec3(double x, double y, double z)
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
isFinite → bool
no setter
length → double
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → double
final
y → double
final
z → double
final

Methods

cross(DVVec3 other) → DVVec3
dot(DVVec3 other) → double
normalized() → DVVec3
This direction at unit length; the zero vector stays zero rather than becoming NaN, which would poison every transform downstream.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toList() → List<double>
toString() → String
A string representation of this object.
override

Operators

operator *(double factor) → DVVec3
operator +(DVVec3 other) → DVVec3
operator -(DVVec3 other) → DVVec3
operator ==(Object other) → bool
The equality operator.
override
operator unary-() → DVVec3

Constants

one → const DVVec3
up → const DVVec3
zero → const DVVec3