RaylibVector2FlatExt<R extends RaylibBase> class
abstract
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
-
- Object
- RaylibModule<
R> - RaylibVector2FlatExt
- Implementers
Constructors
- RaylibVector2FlatExt(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 -
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 - Add two vectors (v1 + v2)
-
Vector2AddValue(
Vector2D v, double add) → Vector2D - Add vector and double value
-
Vector2Angle(
Vector2D v1, Vector2D v2) → double - Calculate the signed angle from v1 to v2, relative to the origin (0, 0)
-
Vector2Clamp(
Vector2D v, Vector2D min, Vector2D max) → Vector2D - Clamp the components of the vector between min and max values specified by the given vectors
-
Vector2ClampValue(
Vector2D v, double min, double max) → Vector2D - Clamp the magnitude of the vector between two min and max values
-
Vector2CrossProduct(
Vector2D v1, Vector2D v2) → double - Calculate two vectors cross product
-
Vector2Distance(
Vector2D v1, Vector2D v2) → double - Calculate distance between two vectors
-
Vector2DistanceSqr(
Vector2D v1, Vector2D v2) → double - Calculate square distance between two vectors
-
Vector2Divide(
Vector2D v1, Vector2D v2) → Vector2D - Divide vector by vector
-
Vector2DotProduct(
Vector2D v1, Vector2D v2) → double - Calculate two vectors dot product
-
Vector2Equals(
Vector2D p, Vector2D q) → bool - Check whether two given vectors are almost equal
-
Vector2Invert(
Vector2D v) → Vector2D - Invert the given vector
-
Vector2Length(
Vector2D v) → double - Calculate vector length
-
Vector2LengthSqr(
Vector2D v) → double - Calculate vector square length
-
Vector2Lerp(
Vector2D v1, Vector2D v2, double amount) → Vector2D - Calculate linear interpolation between two vectors
-
Vector2LineAngle(
Vector2D start, Vector2D end) → double - Calculate angle defined by a two vectors line
-
Vector2Max(
Vector2D v1, Vector2D v2) → Vector2D - Get max value for each pair of components
-
Vector2Min(
Vector2D v1, Vector2D v2) → Vector2D - Get min value for each pair of components
-
Vector2MoveTowards(
Vector2D v, Vector2D target, double maxDistance) → Vector2D - Move Vector towards target
-
Vector2Multiply(
Vector2D v1, Vector2D v2) → Vector2D - Multiply vector by vector
-
Vector2Negate(
Vector2D v) → Vector2D - Negate vector
-
Vector2Normalize(
Vector2D v) → Vector2D - Normalize provided vector
-
Vector2One(
) → Vector2D - Vector with components value 1.0f
-
Vector2Reflect(
Vector2D v, Vector2D normal) → Vector2D - Calculate reflected vector to normal
-
Vector2Refract(
Vector2D v, Vector2D n, double r) → Vector2D - Compute the direction of a refracted ray v: normalized direction of the incoming ray n: normalized normal vector of the interface of two optical media r: ratio of the refractive index of the medium from where the ray comes to the refractive index of the medium on the other side of the surface
-
Vector2Rotate(
Vector2D v, double angle) → Vector2D - Rotate vector by angle
-
Vector2Scale(
Vector2D v, double scale) → Vector2D - Scale vector (multiply by value)
-
Vector2Subtract(
Vector2D v1, Vector2D v2) → Vector2D - Subtract two vectors (v1 - v2)
-
Vector2SubtractValue(
Vector2D v, double sub) → Vector2D - Subtract vector by double value
-
Vector2Transform(
Vector2D v, MatrixD mat) → Vector2D - Transforms a Vector2 by a given Matrix
-
Vector2Zero(
) → Vector2D - Vector with components value 0.0f
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited