RaylibQuaternionFlatExt<R extends RaylibBase> class
abstract
Exposes Raylib's quaternion math API as module-level functions by delegating to the corresponding QuaternionD methods/factories. Exists purely for Raylib API symmetry.
- Inheritance
-
- Object
- RaylibModule<
R> - RaylibQuaternionFlatExt
Constructors
- RaylibQuaternionFlatExt(R rl)
Properties
-
$
→ RaylibTemp<
RaylibBase> -
See RaylibTemp.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- rl → R
-
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
messageat error level if debug is enabled andmessagepasses 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
messageat info level if debug is enabled andmessagepasses all filters.inherited -
debugTime(
bool v) → void -
Enables or disables per-call timing output alongside debug logs.
inherited
-
debugWarn(
String message) → void -
Logs
messageat warn level if debug is enabled andmessagepasses all filters.inherited -
disableSync<
T> (T f()) → T -
Executes
fwith 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, invokesfnwith 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, invokesfnwith 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
fnto be called when this module is disposed.inherited -
QuaternionAdd(
QuaternionD q1, QuaternionD q2) → QuaternionD - Add two quaternions
-
QuaternionAddValue(
QuaternionD q, double add) → QuaternionD - Add quaternion and double value
-
QuaternionCubicHermiteSpline(
QuaternionD q1, QuaternionD outTangent1, QuaternionD q2, QuaternionD inTangent2, double t) → QuaternionD - 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(
QuaternionD q1, QuaternionD q2) → QuaternionD - Divide two quaternions
-
QuaternionEquals(
QuaternionD p, QuaternionD q) → bool - Check whether two given quaternions are almost equal
-
QuaternionFromAxisAngle(
Vector3D axis, double angle) → QuaternionD - Get rotation quaternion for an angle and axis
-
QuaternionFromEuler(
double pitch, double yaw, double roll) → QuaternionD - Get the quaternion equivalent to Euler angles
-
QuaternionFromMatrix(
MatrixD mat) → QuaternionD - Get a quaternion for a given rotation matrix
-
QuaternionFromVector3ToVector3(
Vector3D from, Vector3D to) → QuaternionD - Calculate quaternion based on the rotation from one vector to another
-
QuaternionIdentity(
) → QuaternionD - Get identity quaternion
-
QuaternionInvert(
QuaternionD q) → QuaternionD - Invert provided quaternion
-
QuaternionLength(
QuaternionD q) → double - Computes the length of a quaternion
-
QuaternionLerp(
QuaternionD q1, QuaternionD q2, double amount) → QuaternionD - Calculate linear interpolation between two quaternions
-
QuaternionMultiply(
QuaternionD q1, QuaternionD q2) → QuaternionD - Calculate two quaternion multiplication
-
QuaternionNlerp(
QuaternionD q1, QuaternionD q2, double amount) → QuaternionD - Calculate slerp-optimized interpolation between two quaternions
-
QuaternionNormalize(
QuaternionD q) → QuaternionD - Normalize provided quaternion
-
QuaternionScale(
QuaternionD q, double mul) → QuaternionD - Scale quaternion by double value
-
QuaternionSlerp(
QuaternionD q1, QuaternionD q2, double amount) → QuaternionD - Calculates spherical linear interpolation between two quaternions
-
QuaternionSubtract(
QuaternionD q1, QuaternionD q2) → QuaternionD - Subtract two quaternions
-
QuaternionSubtractValue(
QuaternionD q, double sub) → QuaternionD - Subtract quaternion and double value
-
QuaternionToAxisAngle(
QuaternionD q, StructPointer< Vector3D> outAxis, MemoryPointer<RFloat32> outAngle) → void - Get the rotation angle and axis for a given quaternion
-
QuaternionToEuler(
QuaternionD q) → Vector3D - Get the Euler angles equivalent to quaternion (roll, pitch, yaw)
-
QuaternionToMatrix(
QuaternionD q) → MatrixD - Get a matrix for a given quaternion
-
QuaternionTransform(
QuaternionD q, MatrixD mat) → QuaternionD - 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