QuaternionD class
- Inheritance
- Mixed-in types
Constructors
-
QuaternionD({Pointer<
QuaternionC> ? originalPointer, double x = 0, double y = 0, double z = 0, double w = 0}) - QuaternionD.fromAxisAngle(Vector3D axis, double angle)
-
factory
- QuaternionD.fromEuler(double pitch, double yaw, double roll)
-
factory
- QuaternionD.fromMatrix(MatrixD mat)
-
factory
- QuaternionD.fromVector3ToVector3(Vector3D from, Vector3D to)
-
factory
- QuaternionD.fromVector4(Vector4D v)
-
factory
- QuaternionD.identity()
-
factory
- QuaternionD.one()
-
factory
- QuaternionD.quat(num x, num y, num z, num w)
-
factory
- QuaternionD.zero()
-
factory
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 setterinherited
- lengthSqr → double
-
no setterinherited
-
originalPointer
↔ Pointer<
QuaternionC> ? -
The C-owned or RaylibTemp-owned native pointer for this struct, if any.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- structIsDisposed → bool
-
Whether structMarkDisposed has been called on this instance.
no setterinherited
- structName → String
-
The Dart-side type name of this struct
no setterinherited
- structRequiresOriginalPointer → bool
-
Whether this struct requires an originalPointer to function correctly.
no setterinherited
- w ↔ double
-
getter/setter pairoverride
- x ↔ double
-
getter/setter pairoverride
- y ↔ double
-
getter/setter pairoverride
- z ↔ double
-
getter/setter pairoverride
Methods
-
add(
QuaternionD o) → QuaternionD -
inherited
-
addValue(
num value) → QuaternionD -
inherited
-
clone(
) → QuaternionD -
Returns a deep copy of this instance, preserving RaylibStructBase.originalPointer if present.
override
-
copy(
) → QuaternionD -
Returns a deep copy of this instance without RaylibStructBase.originalPointer.
inherited
-
cubicHermiteSpline(
QuaternionD outTangent1, QuaternionD q2, QuaternionD inTangent2, double t) → QuaternionD -
inherited
-
distance(
QuaternionD o) → double -
inherited
-
distanceSqr(
QuaternionD o) → double -
inherited
-
div(
QuaternionD o) → QuaternionD -
inherited
-
divideBy(
num o) → QuaternionD -
inherited
-
dotProduct(
QuaternionD o) → double -
inherited
-
equals(
QuaternionD o) → bool -
inherited
-
format(
[int x0 = 0, int? y0, int? z0, int? w0]) → String -
inherited
-
getOriginalPointer(
) → Pointer< QuaternionC> -
Returns originalPointer, throwing a descriptive StateError if unavailable or this instance RaylibTempStructState.isDisposed.
inherited
-
getOriginalPointerAndDispose(
) → Pointer< QuaternionC> -
Returns originalPointer and immediately calls structMarkDisposed.
inherited
-
invert(
) → QuaternionD -
inherited
-
lerp(
QuaternionD o, double amount) → QuaternionD -
inherited
-
max(
QuaternionD o) → QuaternionD -
inherited
-
min(
QuaternionD o) → QuaternionD -
inherited
-
mul(
QuaternionD o) → QuaternionD -
inherited
-
nativeGetIndexedArrayReference(
Array< QuaternionC> p, int index) → QuaternionC -
override
-
nativeGetIndexedReference(
Pointer< QuaternionC> p, int index) → QuaternionC -
override
-
nativeGetReference(
Pointer< QuaternionC> p) → QuaternionC -
inherited
-
nativeReadFrom(
QuaternionC p) → void -
override
-
nativeWriteInto(
QuaternionC p) → void -
Writes all fields directly into the native struct reference
p. For nested structs, usewriteIntoas well.override -
negate(
) → QuaternionD -
inherited
-
nLerp(
QuaternionD o, double amount) → QuaternionD -
inherited
-
normalize(
) → QuaternionD -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scale(
num o) → QuaternionD -
inherited
-
set(
num x, num y, num z, num w) → QuaternionD -
inherited
-
setD(
QuaternionD o) → QuaternionD -
Copies the fields of
ointo this instance and returnsthis.override -
signature(
) → String -
Returns a human-readable representation of this struct's current field values.
inherited
-
sLerp(
QuaternionD o, double amount) → QuaternionD -
inherited
-
structAllocateInto(
RaylibTemp temp, Pointer< QuaternionC> p, String key) → void -
Writes all fields into the native struct at
p, allocating nested pointers intotempunderkeyas needed.inherited -
structMarkDisposed(
) → void -
Marks this instance as disposed and clears originalPointer.
inherited
-
structOnOp(
void callback(Pointer< QuaternionC> p)) → void -
Calls
callbackwith originalPointer if it is set, otherwise no-ops.inherited -
structReadFrom(
Pointer< QuaternionC> p) → void -
Reads all fields from the memory at
p.inherited -
structSetTag(
String newTag) → QuaternionD -
Sets RaylibTempStructState.tag to
newTagand returnsthisfor chaining.inherited -
structSyncFromMemory(
) → void -
Syncs all fields from the memory. Requires originalPointer.
inherited
-
structSyncInto(
RaylibTemp temp, Pointer< QuaternionC> p, String key) → void -
Syncs Dart-side fields into the already-allocated native pointer
p.inherited -
structSyncToMemory(
) → void -
Syncs all fields to the memory. Requires originalPointer.
inherited
-
structWriteInto(
Pointer< QuaternionC> p) → void -
Writes all fields into the memory at
p.inherited -
sub(
QuaternionD o) → QuaternionD -
inherited
-
subValue(
num value) → QuaternionD -
inherited
-
toArray(
) → List< double> -
inherited
-
toAxisAngle(
) → (Vector3D, double) -
inherited
-
toEuler(
) → Vector3D -
inherited
-
toMatrix(
) → MatrixD -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toVector4(
) → Vector4D -
inherited
-
transform(
MatrixD mat) → QuaternionD -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited