aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/game/cplane_t.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2/game/cplane_t.java')
-rw-r--r--src/jake2/game/cplane_t.java30
1 files changed, 12 insertions, 18 deletions
diff --git a/src/jake2/game/cplane_t.java b/src/jake2/game/cplane_t.java
index 4465a76..e356448 100644
--- a/src/jake2/game/cplane_t.java
+++ b/src/jake2/game/cplane_t.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 31.10.2003 by RST.
-// $Id: cplane_t.java,v 1.3 2004-07-08 20:24:29 hzi Exp $
+// $Id: cplane_t.java,v 1.4 2005-01-14 16:08:12 cawe Exp $
package jake2.game;
@@ -33,23 +33,8 @@ public class cplane_t
public byte type; // for fast side tests
public byte signbits; // signx + (signy<<1) + (signz<<1)
public byte pad[] = { 0, 0 };
-
-// public cplane_t getClone()
-// {
-// cplane_t out = new cplane_t();
-// Math3D.set(out.normal, normal);
-// out.dist = dist;
-// out.type = type;
-// out.signbits = signbits;
-// out.pad[0] = pad[0];
-// out.pad[1] = pad[1];
-//
-// return out;
-// }
-
- public void set(cplane_t c)
- {
-
+
+ public void set(cplane_t c) {
Math3D.set(normal, c.normal);
dist = c.dist;
type = c.type;
@@ -57,4 +42,13 @@ public class cplane_t
pad[0] = c.pad[0];
pad[1] = c.pad[1];
}
+
+ public void clear() {
+ Math3D.VectorClear(normal);
+ dist = 0;
+ type = 0;
+ signbits = 0;
+ pad[0] = 0;
+ pad[1] = 0;
+ }
}