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