All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class berkeley.cs.dmc.ji3d.Vec3

java.lang.Object
   |
   +----berkeley.cs.dmc.ji3d.Base
           |
           +----berkeley.cs.dmc.ji3d.Vec3

public final class Vec3
extends Base
implements Cloneable

Variable Index

 o x
 o y
 o z

Constructor Index

 o Vec3()
 o Vec3(float, float, float)
 o Vec3(Vec3)
 o Vec3(Vec4)

Method Index

 o add(Vec3)
 o add(Vec3, Vec3)
 o clone()
 o cross(Vec3, Vec3)
 o dist(Vec3, Vec3)
 o dot(Vec3)
 o dot(Vec3, Vec3)
 o equals(Object)
 o length()
 o mul(Vec3)
 o mul(Vec3, Vec3)
 o normalize()
 o normalize(Vec3)
 o scale(float)
 o scale(Vec3, float)
 o set(float, float, float)
 o set(Vec4)
 o sub(Vec3)
 o sub(Vec3, Vec3)
 o sub(Vec4, Vec4)
 o toString()
 o xform(Mat4, Vec2)
 o xform(Mat4, Vec3)
 o xform(Mat4, Vec4)
 o xformNormal(Mat4, Vec3)
 o xformNormalT(Mat4, Vec3)
 o zero()

Variables

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

Constructors

 o Vec3
 public Vec3(float x,
             float y,
             float z)
 o Vec3
 public Vec3(Vec3 v)
 o Vec3
 public Vec3(Vec4 v)
 o Vec3
 public Vec3()

Methods

 o clone
 public final Object clone()
Overrides:
clone in class Object
 o zero
 public final Vec3 zero()
 o set
 public final Vec3 set(Vec4 v)
 o set
 public final Vec3 set(float x,
                       float y,
                       float z)
 o add
 public final Vec3 add(Vec3 a,
                       Vec3 b)
 o add
 public final Vec3 add(Vec3 v)
 o sub
 public final Vec3 sub(Vec3 v)
 o sub
 public final Vec3 sub(Vec3 a,
                       Vec3 b)
 o sub
 public final Vec3 sub(Vec4 a,
                       Vec4 b)
 o mul
 public final Vec3 mul(Vec3 v)
 o mul
 public final Vec3 mul(Vec3 a,
                       Vec3 b)
 o scale
 public final Vec3 scale(float s)
 o scale
 public final Vec3 scale(Vec3 v,
                         float s)
 o cross
 public final Vec3 cross(Vec3 a,
                         Vec3 b)
 o dot
 public final float dot(Vec3 v)
 o dot
 public static final float dot(Vec3 a,
                               Vec3 b)
 o length
 public final float length()
 o dist
 public static final float dist(Vec3 a,
                                Vec3 b)
 o normalize
 public final void normalize() throws ArithmeticException
 o normalize
 public final void normalize(Vec3 v) throws ArithmeticException
 o xform
 public final Vec3 xform(Mat4 m,
                         Vec2 v)
 o xform
 public final Vec3 xform(Mat4 m,
                         Vec3 v)
 o xform
 public final Vec3 xform(Mat4 m,
                         Vec4 v)
 o xformNormal
 public final Vec3 xformNormal(Mat4 m,
                               Vec3 v)
 o xformNormalT
 public final Vec3 xformNormalT(Mat4 m,
                                Vec3 v)
 o toString
 public final String toString()
Overrides:
toString in class Object
 o equals
 public final boolean equals(Object anObject)
Overrides:
equals in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index