RaylibVector2ExtFlatNative class

Inheritance

Properties

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
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(dynamic v1, dynamic v2) → dynamic
Add two vectors (v1 + v2)
override
Vector2AddValue(dynamic v, double add) → dynamic
Add vector and double value
override
Vector2Angle(dynamic v1, dynamic v2) → double
Calculate the signed angle from v1 to v2, relative to the origin (0, 0)
override
Vector2Clamp(dynamic v, dynamic min, dynamic max) → dynamic
Clamp the components of the vector between min and max values specified by the given vectors
override
Vector2ClampValue(dynamic v, double min, double max) → dynamic
Clamp the magnitude of the vector between two min and max values
override
Vector2CrossProduct(dynamic v1, dynamic v2) → double
Calculate two vectors cross product
override
Vector2Distance(dynamic v1, dynamic v2) → double
Calculate distance between two vectors
override
Vector2DistanceSqr(dynamic v1, dynamic v2) → double
Calculate square distance between two vectors
override
Vector2Divide(dynamic v1, dynamic v2) → dynamic
Divide vector by vector
override
Vector2DotProduct(dynamic v1, dynamic v2) → double
Calculate two vectors dot product
override
Vector2Equals(dynamic p, dynamic q) → bool
Check whether two given vectors are almost equal
override
Vector2Invert(dynamic v) → dynamic
Invert the given vector
override
Vector2Length(dynamic v) → double
Calculate vector length
override
Vector2LengthSqr(dynamic v) → double
Calculate vector square length
override
Vector2Lerp(dynamic v1, dynamic v2, double amount) → dynamic
Calculate linear interpolation between two vectors
override
Vector2LineAngle(dynamic start, dynamic end) → double
Calculate angle defined by a two vectors line
override
Vector2Max(dynamic v1, dynamic v2) → dynamic
Get max value for each pair of components
override
Vector2Min(dynamic v1, dynamic v2) → dynamic
Get min value for each pair of components
override
Vector2MoveTowards(dynamic v, dynamic target, double maxDistance) → dynamic
Move Vector towards target
override
Vector2Multiply(dynamic v1, dynamic v2) → dynamic
Multiply vector by vector
override
Vector2Negate(dynamic v) → dynamic
Negate vector
override
Vector2Normalize(dynamic v) → dynamic
Normalize provided vector
override
Vector2One() → dynamic
Vector with components value 1.0f
override
Vector2Reflect(dynamic v, dynamic normal) → dynamic
Calculate reflected vector to normal
override
Vector2Refract(dynamic v, dynamic n, double r) → dynamic
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
override
Vector2Rotate(dynamic v, double angle) → dynamic
Rotate vector by angle
override
Vector2Scale(dynamic v, double scale) → dynamic
Scale vector (multiply by value)
override
Vector2Subtract(dynamic v1, dynamic v2) → dynamic
Subtract two vectors (v1 - v2)
override
Vector2SubtractValue(dynamic v, double sub) → dynamic
Subtract vector by double value
override
Vector2Transform(dynamic v, dynamic mat) → dynamic
Transforms a Vector2 by a given Matrix
override
Vector2Zero() → dynamic
Vector with components value 0.0f
override

Operators

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