mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
40 lines
844 B
ActionScript
40 lines
844 B
ActionScript
package Box2D.Common.Math
|
|
{
|
|
public class b2XForm
|
|
{
|
|
|
|
public var position:b2Vec2 = new b2Vec2();
|
|
|
|
public var R:b2Mat22 = new b2Mat22();
|
|
|
|
public function b2XForm(param1:b2Vec2 = null, param2:b2Mat22 = null)
|
|
{
|
|
super();
|
|
if(param1)
|
|
{
|
|
position.SetV(param1);
|
|
R.SetM(param2);
|
|
}
|
|
}
|
|
|
|
public function Initialize(param1:b2Vec2, param2:b2Mat22) : void
|
|
{
|
|
position.SetV(param1);
|
|
R.SetM(param2);
|
|
}
|
|
|
|
public function SetIdentity() : void
|
|
{
|
|
position.SetZero();
|
|
R.SetIdentity();
|
|
}
|
|
|
|
public function Set(param1:b2XForm) : void
|
|
{
|
|
position.SetV(param1.position);
|
|
R.SetM(param1.R);
|
|
}
|
|
}
|
|
}
|
|
|