Add copy constructor to PhysicsVector.

remotes/origin/0.6.7-post-fixes
Jeff Ames 2009-08-26 13:59:53 +09:00
parent 02f937b0dc
commit cf2d1b5c10
1 changed files with 5 additions and 0 deletions

View File

@ -46,12 +46,17 @@ namespace OpenSim.Region.Physics.Manager
Z = z;
}
public PhysicsVector(PhysicsVector pv) : this(pv.X, pv.Y, pv.Z)
{
}
public void setValues(float x, float y, float z)
{
X = x;
Y = y;
Z = z;
}
public static readonly PhysicsVector Zero = new PhysicsVector(0f, 0f, 0f);
public override string ToString()