|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gnu.gleem.linalg.Vecf
Arbitrary-length single-precision vector class. Currently very simple and only supports a few needed operations.
| Constructor Summary | |
Vecf(int n)
|
|
Vecf(Vecf arg)
|
|
| Method Summary | |
float |
get(int i)
|
int |
length()
|
void |
set(int i,
float val)
|
Veci |
toInt()
|
Vec2f |
toVec2f()
|
Vec3f |
toVec3f()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Vecf(int n)
public Vecf(Vecf arg)
| Method Detail |
public int length()
public float get(int i)
public void set(int i,
float val)
public Vec2f toVec2f()
throws DimensionMismatchException
DimensionMismatchException
public Vec3f toVec3f()
throws DimensionMismatchException
DimensionMismatchExceptionpublic Veci toInt()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||