public class Int2 extends Object
Constructor and Description |
---|
Int2() |
Int2(int i) |
Int2(Int2 source) |
Int2(int x,
int y) |
Modifier and Type | Method and Description |
---|---|
void |
add(int value) |
void |
add(Int2 a) |
static Int2 |
add(Int2 a,
int b) |
static Int2 |
add(Int2 a,
Int2 b) |
void |
addAt(int i,
int value) |
void |
addMultiple(Int2 a,
int factor) |
void |
copyTo(int[] data,
int offset) |
void |
div(int value) |
void |
div(Int2 a) |
static Int2 |
div(Int2 a,
int b) |
static Int2 |
div(Int2 a,
Int2 b) |
int |
dotProduct(Int2 a) |
static int |
dotProduct(Int2 a,
Int2 b) |
int |
elementSum() |
int |
get(int i) |
int |
length() |
void |
mod(int value) |
void |
mod(Int2 a) |
static Int2 |
mod(Int2 a,
int b) |
static Int2 |
mod(Int2 a,
Int2 b) |
void |
mul(int value) |
void |
mul(Int2 a) |
static Int2 |
mul(Int2 a,
int b) |
static Int2 |
mul(Int2 a,
Int2 b) |
void |
negate() |
void |
set(Int2 a) |
void |
setAt(int i,
int value) |
void |
setValues(int a,
int b) |
void |
sub(int value) |
void |
sub(Int2 a) |
static Int2 |
sub(Int2 a,
int b) |
static Int2 |
sub(Int2 a,
Int2 b) |
public Int2()
public Int2(int i)
public Int2(int x, int y)
public Int2(Int2 source)
public void add(Int2 a)
a
- public void add(int value)
value
- public void sub(Int2 a)
a
- public void sub(int value)
value
- public void mul(Int2 a)
a
- public void mul(int value)
value
- public void div(Int2 a)
a
- public void div(int value)
value
- public void mod(Int2 a)
a
- public void mod(int value)
value
- public int length()
public void negate()
public int dotProduct(Int2 a)
a
- public void addMultiple(Int2 a, int factor)
a
- factor
- public void set(Int2 a)
a
- public void setValues(int a, int b)
a
- b
- public int elementSum()
public int get(int i)
i
- public void setAt(int i, int value)
i
- value
- public void addAt(int i, int value)
i
- value
- public void copyTo(int[] data, int offset)
data
- offset
-