Package org.gephi.preview.api
Class Vector
- java.lang.Object
-
- org.gephi.preview.api.Vector
-
public class Vector extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(float a, float b)
void
add(Vector v)
static Vector
add(Vector v1, Vector v2)
void
div(float n)
static Vector
div(Vector v, float n)
boolean
equals(Object obj)
float
getX()
float
getY()
int
hashCode()
float
mag()
void
mult(float n)
static Vector
mult(Vector v, float n)
void
normalize()
void
set(float x, float y)
void
set(Vector v)
void
sub(float a, float b)
void
sub(Vector v)
static Vector
sub(Vector v1, Vector v2)
String
toString()
-
-
-
Method Detail
-
set
public void set(float x, float y)
-
set
public void set(Vector v)
-
div
public void div(float n)
-
mult
public void mult(float n)
-
add
public void add(Vector v)
-
add
public void add(float a, float b)
-
sub
public void sub(Vector v)
-
sub
public void sub(float a, float b)
-
mag
public float mag()
-
normalize
public void normalize()
-
getX
public float getX()
-
getY
public float getY()
-
-