aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJeff Ames2009-08-26 13:59:53 +0900
committerJeff Ames2009-08-26 14:28:54 +0900
commitcf2d1b5c1007958193bb1d84492e0d2714403ebb (patch)
tree17ad4b5efde1d76c702a3a3c029fce7a831b67d4 /OpenSim
parentFix some compile warnings. (diff)
downloadopensim-SC_OLD-cf2d1b5c1007958193bb1d84492e0d2714403ebb.zip
opensim-SC_OLD-cf2d1b5c1007958193bb1d84492e0d2714403ebb.tar.gz
opensim-SC_OLD-cf2d1b5c1007958193bb1d84492e0d2714403ebb.tar.bz2
opensim-SC_OLD-cf2d1b5c1007958193bb1d84492e0d2714403ebb.tar.xz
Add copy constructor to PhysicsVector.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsVector.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/PhysicsVector.cs b/OpenSim/Region/Physics/Manager/PhysicsVector.cs
index c275021..d6f4d0d 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsVector.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsVector.cs
@@ -46,12 +46,17 @@ namespace OpenSim.Region.Physics.Manager
46 Z = z; 46 Z = z;
47 } 47 }
48 48
49 public PhysicsVector(PhysicsVector pv) : this(pv.X, pv.Y, pv.Z)
50 {
51 }
52
49 public void setValues(float x, float y, float z) 53 public void setValues(float x, float y, float z)
50 { 54 {
51 X = x; 55 X = x;
52 Y = y; 56 Y = y;
53 Z = z; 57 Z = z;
54 } 58 }
59
55 public static readonly PhysicsVector Zero = new PhysicsVector(0f, 0f, 0f); 60 public static readonly PhysicsVector Zero = new PhysicsVector(0f, 0f, 0f);
56 61
57 public override string ToString() 62 public override string ToString()