home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-11-17 | 643 b | 27 lines |
- // Class for handling Quake 3-element vectors
-
- // Written by Bernie Roehl, November 1996
-
- package quake;
-
- import java.io.*;
-
- public class Vec3 {
- protected float x, y, z;
-
- public float getX() { return x; }
- public float getY() { return y; }
- public float getZ() { return z; }
-
- public String toString() {
- return x + " " + y + " " + z;
- }
-
- public Vec3(ByteFlipInputStream input) throws IOException {
- x = input.readFlippedFloat();
- y = input.readFlippedFloat();
- z = input.readFlippedFloat();
- }
- }
-
-