Add copy constructor to PhysicsVector.
parent
02f937b0dc
commit
cf2d1b5c10
|
@ -46,12 +46,17 @@ namespace OpenSim.Region.Physics.Manager
|
||||||
Z = z;
|
Z = z;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public PhysicsVector(PhysicsVector pv) : this(pv.X, pv.Y, pv.Z)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public void setValues(float x, float y, float z)
|
public void setValues(float x, float y, float z)
|
||||||
{
|
{
|
||||||
X = x;
|
X = x;
|
||||||
Y = y;
|
Y = y;
|
||||||
Z = z;
|
Z = z;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly PhysicsVector Zero = new PhysicsVector(0f, 0f, 0f);
|
public static readonly PhysicsVector Zero = new PhysicsVector(0f, 0f, 0f);
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
|
|
Loading…
Reference in New Issue