Vector4Base<V4 extends Vector4Base<V4, Q, M, V3>, Q extends QuaternionBase<Q, M, V3, V4>, M extends MatrixBase<M, V3, Q, V4>, V3 extends Vector3Base<V3, M, Q, V4>> mixin

Backend-agnostic contract for Vector4Base structs.

Must be mixed into every concrete platform implementation of a Raylib type to ensure a unified API surface across different backends.

Superclass constraints

Properties

$state RaylibTempStructState
Per-instance allocation state tracking slot keys, disposal, and identity.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
length double
no setter
lengthSqr double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
structName String
The Dart-side type name of this struct
no setterinherited
w double
getter/setter pair
x double
getter/setter pair
y double
getter/setter pair
z double
getter/setter pair

Methods

add(V4 o) → V4
addValue(num value) → V4
clone() → V4
Returns a deep copy of this instance, preserving RaylibStructBase.originalPointer if present.
inherited
copy() → V4
Returns a deep copy of this instance without RaylibStructBase.originalPointer.
inherited
distance(V4 o) double
distanceSqr(V4 o) double
div(V4 o) → V4
divideBy(num o) → V4
dotProduct(V4 o) double
equals(V4 o) bool
format([int x0 = 0, int? y0, int? z0, int? w0]) String
invert() → V4
lerp(V4 o, double amount) → V4
max(V4 o) → V4
min(V4 o) → V4
moveTowards(V4 target, double maxDistance) → V4
mul(V4 o) → V4
negate() → V4
normalize() → V4
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(num o) → V4
set(num x, num y, num z, num w) → V4
setD(V4 o) → V4
Copies the fields of o into this instance and returns this.
inherited
signature() String
Returns a human-readable representation of this struct's current field values.
override
sub(V4 o) → V4
subValue(num value) → V4
toArray() List<double>
toQuaternion() → Q
toString() String
A string representation of this object.
inherited

Operators

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