Appearance
Class: Transform
A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames. Initialize using a position vector and a rotation.
Constructors
Constructor
new Transform(
position?,rotation?):Transform
Parameters
position?
rotation?
number
Returns
Transform
Properties
p
p:
Vec2
position
q
q:
Rot
rotation
Methods
set()
Call Signature
set(
position,rotation):void
Set position and angle
Parameters
position
rotation
number
Returns
void
Call Signature
set(
xf):void
Copy from another transform
Parameters
xf
Returns
void
setIdentity()
setIdentity():
void
Set this to the identity transform
Returns
void
setNum()
setNum(
position,rotation):void
Set position and angle
Parameters
position
rotation
number
Returns
void
setTransform()
setTransform(
xf):void
Parameters
xf
Returns
void
assert()
staticassert(o):void
Parameters
o
any
Returns
void
clone()
staticclone(xf):Transform
Parameters
xf
Transform
Returns
Transform
identity()
staticidentity():Transform
Returns
Transform
isValid()
staticisValid(obj):boolean
Parameters
obj
any
Returns
boolean
mul()
Call Signature
staticmul(a,b):Vec2
Parameters
a
b
Returns
Call Signature
staticmul(a,b):Transform
Parameters
a
b
Returns
Transform
mulAll()
Call Signature
staticmulAll(a,b):Vec2[]
Parameters
a
Transform
b
Returns
Vec2[]
Call Signature
staticmulAll(a,b):Transform[]
Parameters
a
Transform
b
Transform[]
Returns
Transform[]
mulT()
Call Signature
staticmulT(a,b):Vec2
Parameters
a
b
Returns
Call Signature
staticmulT(a,b):Transform
Parameters
a
b
Returns
Transform
mulTVec2()
staticmulTVec2(a,b):Vec2
Parameters
a
b
Returns
mulTXf()
staticmulTXf(a,b):Transform
Parameters
a
b
Returns
Transform
mulVec2()
staticmulVec2(a,b):Vec2
Parameters
a
b
Returns
mulXf()
staticmulXf(a,b):Transform
Parameters
a
b
Returns
Transform