|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.java.dev.joode.util.Real
public class Real
| Field Summary | |
|---|---|
float[] |
m
|
| Constructor Summary | |
|---|---|
Real(float[] array)
Deprecated. use the pool methods: aquire instance and release instance instead |
|
Real(int size)
Deprecated. use the pool methods: aquire instance and release instance instead |
|
| Method Summary | |
|---|---|
Real |
add(Real a)
|
static Real |
aquireDirtyInstance(int size)
returns a real from the pooled instances, the real that is returned is not zeroed, so should only be used where the contents are about to be overwritten. |
static Real |
aquireInstance(int size)
returns a real from the pooled instances, the real that is returned is zeroed, so is identical to instanciation by the constructor Real(int size). |
float |
dot(Real a)
|
float |
dot(RealPointer a)
|
static boolean |
epsilonEquals(float a,
float b,
float e)
|
static boolean |
epsilonEquals(Real a,
Real b,
float e)
|
void |
fill(float value)
|
float |
get(int index)
|
float |
length()
|
float |
lengthSquared()
|
float |
max()
returns the maximum value among the components |
float |
min()
returns the minumum value among the components |
float |
norm()
|
void |
normalize()
|
static void |
releaseInstance(Real instance)
releases the instance of the Real back into the object pool. |
void |
scale(float scale)
|
void |
set(int index,
float value)
|
void |
set(Real other)
|
void |
setZero()
|
int |
size()
|
Real |
sub(Real a)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final float[] m
| Constructor Detail |
|---|
public Real(int size)
size - public Real(float[] array)
| Method Detail |
|---|
public static Real aquireInstance(int size)
size -
public static Real aquireDirtyInstance(int size)
size -
public static void releaseInstance(Real instance)
instance - public int size()
public float get(int index)
public void set(Real other)
public void setZero()
public void fill(float value)
public Real add(Real a)
public Real sub(Real a)
a -
public void scale(float scale)
public float dot(Real a)
public float dot(RealPointer a)
public float norm()
public void normalize()
public float length()
public float lengthSquared()
public float min()
public float max()
public java.lang.String toString()
toString in class java.lang.Object
public static boolean epsilonEquals(Real a,
Real b,
float e)
public void set(int index,
float value)
public static boolean epsilonEquals(float a,
float b,
float e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||