Vector4 class

Inheritance

Constructors

Vector4([double? x, double? y, double? z, double? w])
Vector4.fromJson(List<double>? json)
Vector4.identity({double x = 0, double y = 0, double z = 0, double w = 1})
Vector4.zero([double x = 0, double y = 0, double z = 0, double w = 1])

Properties

hashCode int
The hash code for this object.
no setterinherited
height ↔ dynamic
getter/setter pair
length double
no setteroverride
length2 double
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage Float32List
getter/setter pairinherited
type String
getter/setter pair
w double
getter/setter pair
width ↔ dynamic
getter/setter pair
x double
getter/setter pairinherited
y double
getter/setter pairinherited
z double
getter/setter pair

Methods

add(Vector a) Vector4
override
add2(Vector a, Vector b) Vector4
addScalar(num s) Vector4
override
addScaled(Vector v, double s) Vector4
override
applyMatrix3(Matrix3 m) Vector4
override
applyMatrix4(Matrix4 m) Vector4
ceil() Vector4
override
clamp(Vector4 min, Vector4 max) Vector4
clampLength<T extends num>(T min, T max) Vector4
override
clampScalar(double minVal, double maxVal) Vector4
override
clone() Vector4
override
copyFromArray(List<double> array, [int offset = 0]) Vector4
override
copyFromUnknown(dynamic array, [int offset = 0]) Vector4
override
copyIntoArray([List<double>? array, int offset = 0]) List<double>
override
distanceTo(Vector v) double
override
distanceToSquared(Vector v) double
override
divideScalar(double scalar) Vector4
override
dot(Vector v) double
override
equals(Vector v) bool
override
floor() Vector4
override
fromBuffer(BufferAttribute<NativeArray<num>> attribute, int index) Vector4
override
fromNativeArray(NativeArray<num> array, [int offset = 0]) Vector4
override
getComponent(int index) double
override
lerp(Vector4 v, double alpha) Vector4
lerpVectors(Vector4 v1, Vector4 v2, double alpha) Vector4
manhattanLength() double
override
max(Vector4 v) Vector4
min(Vector4 v) Vector4
multiply(Vector4 v) Vector4
negate() Vector4
override
normalize() Vector4
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
random() Vector4
override
round() Vector4
override
roundToZero() Vector4
override
scale(num scalar) Vector4
override
setAxisAngleFromQuaternion(Quaternion q) Vector4
setAxisAngleFromRotationMatrix(Matrix3 m) Vector4
setComponent(int index, double value) Vector4
setFrom(Vector v) Vector4
override
setLength(double length) Vector4
override
setScalar(double scalar) Vector4
override
setValues(double x, double y, [double? z, double? w]) Vector4
override
setW(double w) Vector4
setX(double x) Vector4
setY(double y) Vector4
setZ(double z) Vector4
sub(Vector a) Vector4
override
sub2(Vector a, Vector b) Vector4
subScalar(num s) Vector4
override
toJson() Map<String, dynamic>
override
toList() List<double>
override
toNumArray(List<num> array, [int offset = 0]) List<num>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int i) double
operator []=(int i, double v) → void