gnu.gleem.linalg
Class Vecf

java.lang.Object
  |
  +--gnu.gleem.linalg.Vecf

public class Vecf
extends java.lang.Object

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

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
DimensionMismatchException

toVec3f

public Vec3f toVec3f()
              throws DimensionMismatchException
DimensionMismatchException

toInt

public Veci toInt()