LinearTransform

Summary

Constructors

LinearTransform()
LinearTransform(scale: float)
LinearTransform(left: Vec3, up: Vec3, forward: Vec3, trans: Vec3)
LinearTransform(data: table)

Properties

Name Type
left Vec3
up Vec3
forward Vec3
trans Vec3

Methods

Method Returns
LookAtTransform(camera: Vec3, world: Vec3) void
ToQuatTransform(hasScale: bool) QuatTransform
Translate(trans: Vec3) void
Inverse() LinearTransform
Clone() LinearTransform

Operators

Operator Rhs Returns
+ LinearTransform LinearTransform
- LinearTransform LinearTransform
* LinearTransform LinearTransform
* float LinearTransform
* Vec3 Vec3
* Vec4 Vec3
== LinearTransform bool

Static members

Name Type
LinearTransform.typeInfo TypeInformation

Constructors

LinearTransform

LinearTransform()

LinearTransform

LinearTransform(scale: float)

Parameters

Name Type Description
scale float

LinearTransform

LinearTransform(left: Vec3, up: Vec3, forward: Vec3, trans: Vec3)

Parameters

Name Type Description
left Vec3
up Vec3
forward Vec3
trans Vec3

LinearTransform

LinearTransform(data: table)

Parameters

Name Type Description
data table

Properties

left

Vec3

up

Vec3

forward

Vec3

trans

Vec3

Methods

LookAtTransform

LookAtTransform(camera: Vec3, world: Vec3)

Parameters

Name Type Description
camera Vec3
world Vec3

ToQuatTransform

ToQuatTransform(hasScale: bool): QuatTransform

Parameters

Name Type Description
hasScale bool

Returns

Type Description
QuatTransform

Translate

Translate(trans: Vec3)

Parameters

Name Type Description
trans Vec3

Inverse

Inverse(): LinearTransform

Returns

Type Description
LinearTransform

Clone

Clone(): LinearTransform

Returns

Type Description
LinearTransform

Operators

operator+

operator+(rhs: LinearTransform): LinearTransform

Parameters

Name Type Description
rhs LinearTransform

Returns

Type Description
LinearTransform

operator-

operator-(rhs: LinearTransform): LinearTransform

Parameters

Name Type Description
rhs LinearTransform

Returns

Type Description
LinearTransform

operator*

operator*(rhs: LinearTransform): LinearTransform

Parameters

Name Type Description
rhs LinearTransform

Returns

Type Description
LinearTransform

operator*

operator*(rhs: float): LinearTransform

Parameters

Name Type Description
rhs float

Returns

Type Description
LinearTransform

operator*

operator*(rhs: Vec3): Vec3

Parameters

Name Type Description
rhs Vec3

Returns

Type Description
Vec3

operator*

operator*(rhs: Vec4): Vec3

Parameters

Name Type Description
rhs Vec4

Returns

Type Description
Vec3

operator==

operator==(rhs: LinearTransform): bool

Parameters

Name Type Description
rhs LinearTransform

Returns

Type Description
bool

Static members

typeInfo

TypeInformation

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