RaylibVector2ExtDart<R extends RaylibBase> class

Exposes Raylib's vector math API as module-level functions by delegating to the corresponding Vector2D methods/factories. Exists purely for Raylib API symmetry.

Inheritance

Constructors

RaylibVector2ExtDart(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 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
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
Vector2Add(Vector2D v1, Vector2D v2) → Vector2D
See Vector2D.add.
Vector2AddValue(Vector2D v, double add) → Vector2D
See Vector2D.addValue.
Vector2Angle(Vector2D v1, Vector2D v2) → double
See Vector2D.angle.
Vector2Clamp(Vector2D v, Vector2D min, Vector2D max) → Vector2D
See Vector2D.clamp.
Vector2ClampValue(Vector2D v, double min, double max) → Vector2D
See Vector2D.clampValue.
Vector2CrossProduct(Vector2D v1, Vector2D v2) → double
See Vector2D.crossProduct.
Vector2Distance(Vector2D v1, Vector2D v2) → double
See Vector2D.distance.
Vector2DistanceSqr(Vector2D v1, Vector2D v2) → double
See Vector2D.distanceSqr.
Vector2Divide(Vector2D v1, Vector2D v2) → Vector2D
See Vector2D.div.
Vector2DotProduct(Vector2D v1, Vector2D v2) → double
See Vector2D.dotProduct.
Vector2Equals(Vector2D p, Vector2D q) → bool
See Vector2D.equals.
Vector2Invert(Vector2D v) → Vector2D
See Vector2D.invert.
Vector2Length(Vector2D v) → double
See Vector2D.length.
Vector2LengthSqr(Vector2D v) → double
See Vector2D.lengthSqr.
Vector2Lerp(Vector2D v1, Vector2D v2, double amount) → Vector2D
See Vector2D.lerp.
Vector2LineAngle(Vector2D start, Vector2D end) → double
See Vector2D.lineAngle.
Vector2Max(Vector2D v1, Vector2D v2) → Vector2D
See Vector2D.max.
Vector2Min(Vector2D v1, Vector2D v2) → Vector2D
See Vector2D.min.
Vector2MoveTowards(Vector2D v, Vector2D target, double maxDistance) → Vector2D
See Vector2D.moveTowards.
Vector2Multiply(Vector2D v1, Vector2D v2) → Vector2D
See Vector2D.mul.
Vector2Negate(Vector2D v) → Vector2D
See Vector2D.negate.
Vector2Normalize(Vector2D v) → Vector2D
See Vector2D.normalize.
Vector2One() → Vector2D
See Vector2D.one.
Vector2Reflect(Vector2D v, Vector2D normal) → Vector2D
See Vector2D.reflect.
Vector2Refract(Vector2D v, Vector2D n, double r) → Vector2D
See Vector2D.refract.
Vector2Rotate(Vector2D v, double angle) → Vector2D
See Vector2D.rotate.
Vector2Scale(Vector2D v, double scale) → Vector2D
See Vector2D.scale.
Vector2Subtract(Vector2D v1, Vector2D v2) → Vector2D
See Vector2D.sub.
Vector2SubtractValue(Vector2D v, double sub) → Vector2D
See Vector2D.subValue.
Vector2Transform(Vector2D v, MatrixD mat) → Vector2D
See Vector2D.transform.
Vector2Zero() → Vector2D
See Vector2D.zero.

Operators

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