vec3_t
Name | Type | |
---|---|---|
x | number |
|
y | number |
|
z | number |
Functions¶
length_2d¶
vec3:length_2d():
number
length¶
vec3:length():
number
length_2d_sqr¶
vec3:length_2d_sqr():
number
length_sqr¶
vec3:length_sqr():
number
dist_to_2d¶
vec3:dist_to_2d(other: vec3_t):
number
Name | Type | Description |
---|---|---|
other | vec3_t |
Other vector |
dist_to¶
vec3:dist_to(other: vec3_t):
number
Name | Type | Description |
---|---|---|
other | vec3_t |
Other vector |
dot¶
vec3:dot(other: vec3_t):
number
Name | Type | Description |
---|---|---|
other | vec3_t |
Other vector |
cross¶
vec3:cross(other: vec3_t):
vec3_t
Name | Type | Description |
---|---|---|
other | vec3_t |
Other vector |
normalized¶
vec3:normalized():
vec3_t
normalize¶
vec3:normalize():
number