Vec4

Summary

Constructors

Vec4()
Vec4(x: float, y: float, z: float, w: float)
Vec4(data: table)

Properties

Name Type
x float
y float
z float
w float
magnitude float

Methods

Method Returns
Distance(to: Vec4) float
Clone() Vec4

Operators

Operator Rhs Returns
+ Vec4 Vec4
- Vec4 Vec4
* Vec4 Vec4
* float Vec4
/ Vec4 Vec4
/ float Vec4
== Vec4 bool
< Vec4 bool

Static members

Name Type
Vec4.typeInfo TypeInformation
Vec4.negativeInfinity Vec4
Vec4.one Vec4
Vec4.positiveInfinity Vec4
Vec4.zero Vec4

Constructors

Vec4

Vec4()

Vec4

Vec4(x: float, y: float, z: float, w: float)

Parameters

Name Type Description
x float
y float
z float
w float

Vec4

Vec4(data: table)

Parameters

Name Type Description
data table

Properties

x

float

y

float

z

float

w

float

magnitude

float

Methods

Distance

Distance(to: Vec4): float

Parameters

Name Type Description
to Vec4

Returns

Type Description
float

Clone

Clone(): Vec4

Returns

Type Description
Vec4

Operators

operator+

operator+(rhs: Vec4): Vec4

Parameters

Name Type Description
rhs Vec4

Returns

Type Description
Vec4

operator-

operator-(rhs: Vec4): Vec4

Parameters

Name Type Description
rhs Vec4

Returns

Type Description
Vec4

operator*

operator*(rhs: Vec4): Vec4

Parameters

Name Type Description
rhs Vec4

Returns

Type Description
Vec4

operator*

operator*(rhs: float): Vec4

Parameters

Name Type Description
rhs float

Returns

Type Description
Vec4

operator/

operator/(rhs: Vec4): Vec4

Parameters

Name Type Description
rhs Vec4

Returns

Type Description
Vec4

operator/

operator/(rhs: float): Vec4

Parameters

Name Type Description
rhs float

Returns

Type Description
Vec4

operator==

operator==(rhs: Vec4): bool

Parameters

Name Type Description
rhs Vec4

Returns

Type Description
bool

operator<

operator<(rhs: Vec4): bool

Parameters

Name Type Description
rhs Vec4

Returns

Type Description
bool

Static members

typeInfo

TypeInformation

negativeInfinity

Vec4

one

Vec4

positiveInfinity

Vec4

zero

Vec4

Last modified April 27, 2020: Regenerate all API documentation (0b49d6be)