Vector class

Constructors

Vector({double x = 0.0, double y = 0.0, double z = 0.0, double w = 0.0})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
w double
getter/setter pair
x double
getter/setter pair
y double
getter/setter pair
z double
getter/setter pair

Methods

angle(Vector vec) double
Calculate the angle between this vector and another
dot(Vector vec) double
Return the dot product
magnitude() double
mul(double factor) → void
Multiply each component in the vector by 'factor'.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sub(Vector vec) → void
Subtract a vector from this one.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited