Vec3
Summary
Constructors
Properties
Methods
Operators
Static members
Constructors
Vec3
Vec3()
Vec3
Vec3(x: float, y: float, z: float)
Parameters
Name |
Type |
Description |
x |
float |
|
y |
float |
|
z |
float |
|
Vec3
Vec3(data: table)
Parameters
Name |
Type |
Description |
data |
table |
|
Properties
x
float
y
float
z
float
magnitude
float
Methods
Dot
Dot(with: Vec3): float
Parameters
Name |
Type |
Description |
with |
Vec3 |
|
Returns
Cross
Cross(with: Vec3): Vec3
Parameters
Name |
Type |
Description |
with |
Vec3 |
|
Returns
Normalize
Normalize(): Vec3
Returns
Distance
Distance(to: Vec3): float
Parameters
Name |
Type |
Description |
to |
Vec3 |
|
Returns
MoveTowards
MoveTowards(to: Vec3, maxDistance: float): Vec3
Parameters
Name |
Type |
Description |
to |
Vec3 |
|
maxDistance |
float |
|
Returns
Clone
Clone(): Vec3
Returns
Operators
operator+
operator+(rhs: Vec3): Vec3
Parameters
Name |
Type |
Description |
rhs |
Vec3 |
|
Returns
operator-
operator-(rhs: Vec3): Vec3
Parameters
Name |
Type |
Description |
rhs |
Vec3 |
|
Returns
operator*
operator*(rhs: Vec3): Vec3
Parameters
Name |
Type |
Description |
rhs |
Vec3 |
|
Returns
operator*
operator*(rhs: float): Vec3
Parameters
Name |
Type |
Description |
rhs |
float |
|
Returns
operator/
operator/(rhs: Vec3): Vec3
Parameters
Name |
Type |
Description |
rhs |
Vec3 |
|
Returns
operator/
operator/(rhs: float): Vec3
Parameters
Name |
Type |
Description |
rhs |
float |
|
Returns
operator==
operator==(rhs: Vec3): bool
Parameters
Name |
Type |
Description |
rhs |
Vec3 |
|
Returns
operator<
operator<(rhs: Vec3): bool
Parameters
Name |
Type |
Description |
rhs |
Vec3 |
|
Returns
Static members
typeInfo
TypeInformation
back
Vec3
down
Vec3
forward
Vec3
left
Vec3
negativeInfinity
Vec3
one
Vec3
positiveInfinity
Vec3
right
Vec3
up
Vec3
zero
Vec3