api:vec2f
Table of Contents
vec2f
Category: Data structure
Functions
add
mod
dot
crossZ
cross
getLength2
set
normalize
void vec2f.normalize(object)
| Name | Type | Description |
|---|---|---|
object | vec2f |
normalized
normalizeSafe
void vec2f.normalizeSafe(object, epsilon)
Normalizes the vector safely, avoiding division by zero. Vector close to zero (length lower or equal to _epsilon) will return {0;0}.
| Name | Type | Description |
|---|---|---|
object | vec2f | |
epsilon | float |
normalizedSafe
vec2f vec2f.normalizedSafe(object, epsilon)
Normalizes the vector safely, avoiding division by zero. Vector close to zero (length lower or equal to _epsilon) will return {0;0}.
| Name | Type | Description |
|---|---|---|
object | vec2f | |
epsilon | float |
distance2
isZero
isNearZero
rotate
rotated
api/vec2f.txt · Last modified: 2026/10/08 10:22 by 127.0.0.1
