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