|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvitro.plane.Vector2
public class Vector2
Field Summary | |
---|---|
double |
x
|
double |
y
|
static Vector2 |
ZERO
|
Constructor Summary | |
---|---|
Vector2(double x,
double y)
|
Method Summary | |
---|---|
Vector2 |
add(Vector2 v)
|
double |
dot(Vector2 v)
|
boolean |
equals(Object o)
|
Vector2 |
mul(double s)
|
double |
norm()
|
Vector2 |
normalize()
|
double |
normSq()
|
Vector2 |
reflect(Vector2 normal)
|
Vector2 |
refract(Vector2 normal,
double index1,
double index2)
|
Vector2 |
sub(Vector2 v)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Vector2 ZERO
public final double x
public final double y
Constructor Detail |
---|
public Vector2(double x, double y)
Method Detail |
---|
public Vector2 add(Vector2 v)
public Vector2 sub(Vector2 v)
public Vector2 mul(double s)
public Vector2 normalize()
public double dot(Vector2 v)
public double norm()
public double normSq()
public Vector2 reflect(Vector2 normal)
public Vector2 refract(Vector2 normal, double index1, double index2)
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |