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
-
x
-
-
y
-
-
Vec2()
-
-
Vec2(float, float)
-
-
Vec2(Vec2)
-
-
add(Vec2)
-
-
add(Vec2, Vec2)
-
-
clone()
-
-
dot(Vec2)
-
-
dot(Vec2, Vec2)
-
-
equals(Object)
-
-
length()
-
-
mul(Vec2)
-
-
mul(Vec2, Vec2)
-
-
normalize()
-
-
normalize(Vec2)
-
-
scale(float)
-
-
scale(Vec2, float)
-
-
set(float, float)
-
-
sub(Vec2)
-
-
sub(Vec2, Vec2)
-
-
toString()
-
-
zero()
-
x
public float x
y
public float y
Vec2
public Vec2(float x,
float y)
Vec2
public Vec2(Vec2 v)
Vec2
public Vec2()
clone
public final Object clone()
- Overrides:
- clone in class Object
zero
public final Vec2 zero()
set
public final Vec2 set(float x,
float y)
add
public final Vec2 add(Vec2 a,
Vec2 b)
add
public final Vec2 add(Vec2 v)
sub
public final Vec2 sub(Vec2 a,
Vec2 b)
sub
public final Vec2 sub(Vec2 v)
mul
public final Vec2 mul(Vec2 a,
Vec2 b)
mul
public final Vec2 mul(Vec2 v)
scale
public final Vec2 scale(float s)
scale
public final Vec2 scale(Vec2 v,
float s)
dot
public final float dot(Vec2 v)
dot
public static final float dot(Vec2 a,
Vec2 b)
length
public final float length()
normalize
public final void normalize() throws ArithmeticException
normalize
public final void normalize(Vec2 v) throws ArithmeticException
toString
public final String toString()
- Overrides:
- toString in class Object
equals
public final boolean equals(Object anObject)
- Overrides:
- equals in class Object
All Packages Class Hierarchy This Package Previous Next Index