diff options
author | Jeff Ames | 2009-08-26 13:59:53 +0900 |
---|---|---|
committer | Jeff Ames | 2009-08-26 14:28:54 +0900 |
commit | cf2d1b5c1007958193bb1d84492e0d2714403ebb (patch) | |
tree | 17ad4b5efde1d76c702a3a3c029fce7a831b67d4 /OpenSim/Region/Physics | |
parent | Fix some compile warnings. (diff) | |
download | opensim-SC-cf2d1b5c1007958193bb1d84492e0d2714403ebb.zip opensim-SC-cf2d1b5c1007958193bb1d84492e0d2714403ebb.tar.gz opensim-SC-cf2d1b5c1007958193bb1d84492e0d2714403ebb.tar.bz2 opensim-SC-cf2d1b5c1007958193bb1d84492e0d2714403ebb.tar.xz |
Add copy constructor to PhysicsVector.
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r-- | OpenSim/Region/Physics/Manager/PhysicsVector.cs | 5 |
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() |