net.java.joglutils.msg.math
Class Vecf
java.lang.Object
net.java.joglutils.msg.math.Vecf
public class Vecf
- extends Object
Arbitrary-length single-precision vector class. Currently very
simple and only supports a few needed operations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Vecf
public Vecf(int n)
Vecf
public Vecf(Vecf arg)
length
public int length()
get
public float get(int i)
set
public void set(int i,
float val)
toVec2f
public Vec2f toVec2f()
throws DimensionMismatchException
- Throws:
DimensionMismatchException
toVec3f
public Vec3f toVec3f()
throws DimensionMismatchException
- Throws:
DimensionMismatchException
toInt
public Veci toInt()