preview:api:vec3d
Table of Contents
vec3d
Category: Data structure
Functions
add
almostEquals
boolean vec3d.almostEquals(object, vector, epsilon)
isZero
isNearZero
getXY
getXZ
getYZ
set
setXY
setXZ
setYZ
mod
dot
cross
getOneOrthogonal
normalize
void vec3d.normalize(object)
| Name | Type | Description |
|---|---|---|
object | vec3d |
normalized
normalizeSafe
void vec3d.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;0}.
| Name | Type | Description |
|---|---|---|
object | vec3d | |
epsilon | double |
normalizedSafe
vec3d vec3d.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;0}.
| Name | Type | Description |
|---|---|---|
object | vec3d | |
epsilon | double |
getLength2
distance2
preview/api/vec3d.txt · Last modified: 2026/10/06 12:35 by 127.0.0.1
