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