All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class berkeley.cs.dmc.ji3d.Vec

java.lang.Object
   |
   +----berkeley.cs.dmc.ji3d.Vec

public final class Vec
extends Object
implements Cloneable

Variable Index

 o x
 o y
 o z

Constructor Index

 o Vec()
 o Vec(float, float, float)
 o Vec(Vec)

Method Index

 o add(Vec)
 o add(Vec, Vec)
 o clone()
 o cross(Vec, Vec)
 o dot(Vec)
 o dot(Vec, Vec)
 o equals(Object)
 o length()
 o multiply(Vec)
 o multiply(Vec, Vec)
 o normalize()
 o normalize(Vec)
 o scale(float)
 o scale(Vec, float)
 o set(float, float, float)
 o subtract(Vec)
 o subtract(Vec, Vec)
 o toString()
 o zero()

Variables

 o x
 public float x
 o y
 public float y
 o z
 public float z

Constructors

 o Vec
 public Vec(float x,
            float y,
            float z)
 o Vec
 public Vec(Vec v)
 o Vec
 public Vec()

Methods

 o clone
 public Object clone()
Overrides:
clone in class Object
 o zero
 public Vec zero()
 o set
 public Vec set(float x,
                float y,
                float z)
 o add
 public Vec add(Vec v)
 o add
 public static Vec add(Vec a,
                       Vec b)
 o subtract
 public Vec subtract(Vec v)
 o subtract
 public static Vec subtract(Vec a,
                            Vec b)
 o multiply
 public Vec multiply(Vec v)
 o multiply
 public static Vec multiply(Vec a,
                            Vec b)
 o scale
 public Vec scale(float s)
 o scale
 public static Vec scale(Vec v,
                         float s)
 o cross
 public static Vec cross(Vec a,
                         Vec b)
 o dot
 public float dot(Vec v)
 o dot
 public static float dot(Vec a,
                         Vec b)
 o length
 public float length()
 o normalize
 public void normalize() throws ArithmeticException
 o normalize
 public static Vec normalize(Vec v) throws ArithmeticException
 o toString
 public String toString()
Overrides:
toString in class Object
 o equals
 public boolean equals(Object anObject)
Overrides:
equals in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index