Vec3 extension
- on
-
- Vector3
Methods
-
add2(
Vector3 a, Vector3 b) → Vector3 -
Available on Vector3, provided by the Vec3 extension
add vectora
to vectorb
-
applyMatrix3Transpose(
Matrix3 m) → Vector3 -
Available on Vector3, provided by the Vec3 extension
Apply a 3x3 Matrix to this vector -
cross2(
Vector3 a, Vector3 b) → Vector3 -
Available on Vector3, provided by the Vec3 extension
Crossa
withb
-
equals(
Vector3 v) → bool -
Available on Vector3, provided by the Vec3 extension
Isv
== to this -
inverse(
) → Vector3 -
Available on Vector3, provided by the Vec3 extension
Invert this vector -
lerp(
Vector3 v, num alpha) → Vector3 -
Available on Vector3, provided by the Vec3 extension
-
scale2(
Vector3 v, double s) → Vector3 -
Available on Vector3, provided by the Vec3 extension
scale vectorv
with s and set for this vector -
sub2(
Vector3 a, Vector3 b) → Vector3 -
Available on Vector3, provided by the Vec3 extension
Subtracta
fromb
-
subScaledVector(
Vector3 v, double s) → Vector3 -
Available on Vector3, provided by the Vec3 extension
Subtractv
scaled bys
with this vector -
tangent(
Vector3 a) → Vector3 -
Available on Vector3, provided by the Vec3 extension
Get the tangent of this vector with respect toa
-
testDiff(
Vector3 v) → bool -
Available on Vector3, provided by the Vec3 extension
Check ifv
is different to this -
testZero(
) → bool -
Available on Vector3, provided by the Vec3 extension
Test if all the positions are zero e.g(x=y=z=0)