Package samer.tools
Class vec2
- java.lang.Object
-
- samer.tools.vec2
-
- All Implemented Interfaces:
- java.io.Serializable
public class vec2 extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description vec2()
vec2(double i, double j)
vec2(vec2 a)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
add(vec2 a)
static vec2
add(vec2 a, vec2 b)
void
assign(double i, double j)
void
assign(vec2 a)
void
div(double k)
static vec2
div(vec2 a, double k)
static double
dot(vec2 a, vec2 b)
void
mul(double k)
static vec2
mul(double k, vec2 a)
static vec2
mul(vec2 a, double k)
vec2
neg()
double
norm()
void
normalise()
void
sub(vec2 a)
static vec2
sub(vec2 a, vec2 b)
-
-
-
Constructor Detail
-
vec2
public vec2()
-
vec2
public vec2(double i, double j)
-
vec2
public vec2(vec2 a)
-
-