Package org.gephi.lib.gleem.linalg
Class Vecf
- java.lang.Object
-
- org.gephi.lib.gleem.linalg.Vecf
-
public class Vecf extends Object
Arbitrary-length single-precision vector class. Currently very simple and only supports a few needed operations.
-
-
Constructor Detail
-
Vecf
public Vecf(int n)
-
Vecf
public Vecf(Vecf arg)
-
-
Method Detail
-
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()
-
-