RaylibVector2ExtDart<R extends RaylibBase> class

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

Inheritance

Constructors

RaylibVector2ExtDart(R rl)

Properties

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

Operators

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