All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class berkeley.cs.dmc.ji3d.Vec2

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

public final class Vec2
extends Base
implements Cloneable

Variable Index

 o x
 o y

Constructor Index

 o Vec2()
 o Vec2(float, float)
 o Vec2(Vec2)

Method Index

 o add(Vec2)
 o add(Vec2, Vec2)
 o clone()
 o dot(Vec2)
 o dot(Vec2, Vec2)
 o equals(Object)
 o length()
 o mul(Vec2)
 o mul(Vec2, Vec2)
 o normalize()
 o normalize(Vec2)
 o scale(float)
 o scale(Vec2, float)
 o set(float, float)
 o sub(Vec2)
 o sub(Vec2, Vec2)
 o toString()
 o zero()

Variables

 o x
 public float x
 o y
 public float y

Constructors

 o Vec2
 public Vec2(float x,
             float y)
 o Vec2
 public Vec2(Vec2 v)
 o Vec2
 public Vec2()

Methods

 o clone
 public final Object clone()
Overrides:
clone in class Object
 o zero
 public final Vec2 zero()
 o set
 public final Vec2 set(float x,
                       float y)
 o add
 public final Vec2 add(Vec2 a,
                       Vec2 b)
 o add
 public final Vec2 add(Vec2 v)
 o sub
 public final Vec2 sub(Vec2 a,
                       Vec2 b)
 o sub
 public final Vec2 sub(Vec2 v)
 o mul
 public final Vec2 mul(Vec2 a,
                       Vec2 b)
 o mul
 public final Vec2 mul(Vec2 v)
 o scale
 public final Vec2 scale(float s)
 o scale
 public final Vec2 scale(Vec2 v,
                         float s)
 o dot
 public final float dot(Vec2 v)
 o dot
 public static final float dot(Vec2 a,
                               Vec2 b)
 o length
 public final float length()
 o normalize
 public final void normalize() throws ArithmeticException
 o normalize
 public final void normalize(Vec2 v) throws ArithmeticException
 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