api:vec2d
Table of Contents
vec2d
Category: Data structure
Functions
add
mod
dot
crossZ
cross
getLength2
set
normalize
void vec2d.normalize(object)
| Name | Type | Description |
|---|---|---|
object | vec2d |
normalized
normalizeSafe
void vec2d.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 | vec2d | |
epsilon | double |
normalizedSafe
vec2d vec2d.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 | vec2d | |
epsilon | double |
distance2
isZero
isNearZero
rotate
rotated
api/vec2d.txt · Last modified: 2026/10/08 10:22 by 127.0.0.1
