public class TMath
extends java.lang.Object
Constructor and Description |
---|
TMath() |
Modifier and Type | Method and Description |
---|---|
static TVector |
getCenter(TVector pos1,
TVector pos2)
Gets center from two positions.
|
static TVector |
getCornerFromCenter(TVector pos1,
int length)
Gets corner from center.
|
static TVector |
getExactPosition(int columns,
int rows)
Gets exact position.
|
static TVector |
getSize(TVector vec1,
TVector vec2)
Gets size of region.
|
public static TVector getCenter(TVector pos1, TVector pos2)
pos1
- the position 1pos2
- the position 2public static TVector getCornerFromCenter(TVector pos1, int length)
pos1
- the position 1length
- the lengthpublic static TVector getExactPosition(int columns, int rows)
columns
- the columnsrows
- the rows