RaylibQuaternionExt class

Inheritance

Constructors

RaylibQuaternionExt(Raylib rl)

Properties

$ → RaylibTemp<RaylibBase>
See RaylibTemp.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
rl → Raylib
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

debug(bool v) → void
Enables or disables debug logging for this module.
inherited
debugError(String message) → void
Logs message at error level if debug is enabled and message passes all filters.
inherited
debugFilter(bool filter(String)) → void
Adds a predicate that gates debug output. Only messages satisfying at least one filter are logged.
inherited
debugInfo(String message) → void
Logs message at info level if debug is enabled and message passes all filters.
inherited
debugTime(bool v) → void
Enables or disables per-call timing output alongside debug logs.
inherited
debugWarn(String message) → void
Logs message at warn level if debug is enabled and message passes all filters.
inherited
disableSync<T>(T f()) → T
Executes f with RaylibTemp syncing temporarily disabled, restoring the previous sync state afterward.
inherited
dispose() → void
Calls all registered onDispose callbacks and clears them.
inherited
disposeStructWithOpFreed<D extends RaylibStruct<D>>(D struct, void fn(StructPointer<D> ptr)) → void
Disposes struct, invokes fn with its underlying pointer, and then frees the temporary allocation backing the pointer, if any.
inherited
disposeStructWithOpUnslotted<D extends RaylibStruct<D>>(D struct, void fn(StructPointer<D> ptr)) → void
Disposes struct, invokes fn with its underlying pointer, and then unslots the temporary allocation backing the pointer, if any.
inherited
load() → void
Override to perform one-time module initialization.
inherited
logError(Object? message) → void
inherited
logInfo(Object? message) → void
inherited
logWarn(Object? message) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispose(void fn()) → void
Registers fn to be called when this module is disposed.
inherited
QuaternionAdd(QuaternionC q1, QuaternionC q2) → QuaternionC
Add two quaternions
QuaternionAddValue(QuaternionC q, double add) → QuaternionC
Add quaternion and double value
QuaternionCubicHermiteSpline(QuaternionC q1, QuaternionC outTangent1, QuaternionC q2, QuaternionC inTangent2, double t) → QuaternionC
Calculate quaternion cubic spline interpolation using Cubic Hermite Spline algorithm as described in the GLTF 2.0 specification: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#interpolation-cubic
QuaternionDivide(QuaternionC q1, QuaternionC q2) → QuaternionC
Divide two quaternions
QuaternionEquals(QuaternionC p, QuaternionC q) → bool
Check whether two given quaternions are almost equal
QuaternionFromAxisAngle(Vector3C axis, double angle) → QuaternionC
Get rotation quaternion for an angle and axis
QuaternionFromEuler(double pitch, double yaw, double roll) → QuaternionC
Get the quaternion equivalent to Euler angles
QuaternionFromMatrix(MatrixC mat) → QuaternionC
Get a quaternion for a given rotation matrix
QuaternionFromVector3ToVector3(Vector3C from, Vector3C to) → QuaternionC
Calculate quaternion based on the rotation from one vector to another
QuaternionIdentity() → QuaternionC
Get identity quaternion
QuaternionInvert(QuaternionC q) → QuaternionC
Invert provided quaternion
QuaternionLength(QuaternionC q) → double
Computes the length of a quaternion
QuaternionLerp(QuaternionC q1, QuaternionC q2, double amount) → QuaternionC
Calculate linear interpolation between two quaternions
QuaternionMultiply(QuaternionC q1, QuaternionC q2) → QuaternionC
Calculate two quaternion multiplication
QuaternionNlerp(QuaternionC q1, QuaternionC q2, double amount) → QuaternionC
Calculate slerp-optimized interpolation between two quaternions
QuaternionNormalize(QuaternionC q) → QuaternionC
Normalize provided quaternion
QuaternionScale(QuaternionC q, double mul) → QuaternionC
Scale quaternion by double value
QuaternionSlerp(QuaternionC q1, QuaternionC q2, double amount) → QuaternionC
Calculates spherical linear interpolation between two quaternions
QuaternionSubtract(QuaternionC q1, QuaternionC q2) → QuaternionC
Subtract two quaternions
QuaternionSubtractValue(QuaternionC q, double sub) → QuaternionC
Subtract quaternion and double value
QuaternionToAxisAngle(QuaternionC q, Pointer<Vector3C> outAxis, Pointer<Float> outAngle) → void
Get the rotation angle and axis for a given quaternion
QuaternionToEuler(QuaternionC q) → Vector3C
Get the Euler angles equivalent to quaternion (roll, pitch, yaw)
QuaternionToMatrix(QuaternionC q) → MatrixC
Get a matrix for a given quaternion
QuaternionTransform(QuaternionC q, MatrixC mat) → QuaternionC
Transform a quaternion given a transformation matrix
run<T>(String name(), T f()) → T
Executes f, logging its label (and optionally timing it) when debug is enabled and the label passes all filters.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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