org.openmali.vecmath2
Class TexCoord1f

java.lang.Object
  extended by org.openmali.vecmath2.TexCoordf<TexCoord1f>
      extended by org.openmali.vecmath2.TexCoord1f
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class TexCoord1f
extends TexCoordf<TexCoord1f>
implements java.io.Externalizable

A simple Texture-Coordinate implementation for 1 value.
The order is (s).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openmali.vecmath2.TexCoordf
isDirty, N, roTrick, values
 
Constructor Summary
  TexCoord1f()
          Creates a new TexCoord1f instance.
protected TexCoord1f(boolean readOnly)
          Creates a new TexCoord1f instance.
protected TexCoord1f(boolean readOnly, float s)
          Creates a new TexCoord1f instance.
protected TexCoord1f(boolean readOnly, float[] values)
          Creates a new TexCoord1f instance.
protected TexCoord1f(boolean readOnly, TexCoordf<?> texCoord)
          Creates a new TexCoord1f instance.
  TexCoord1f(float s)
          Creates a new TexCoord1f instance.
  TexCoord1f(float[] values)
          Creates a new TexCoord1f instance.
  TexCoord1f(TexCoordf<?> texCoord)
          Creates a new TexCoord1f instance.
 
Method Summary
 TexCoord1f add(float s)
          Adds the given parameters to this tuple's values.
 TexCoord1f addS(float v)
          Adds v to this texCoord's S value.
 TexCoord1f clone()
          Creates and returns a copy of this object.
 TexCoord1f div(float vs)
          Divides this texCoord's values by vs.
 TexCoord1f divS(float v)
          Divides this texCoord's S value by v.
 boolean equals(java.lang.Object o)
          Returns true if the Object t1 is of type Tuple3f and all of the data members of t1 are equal to the corresponding data members in this Tuple3f.
static TexCoord1f fromPool()
          Allocates an TexCoord1f instance from the pool.
static TexCoord1f fromPool(float s)
          Allocates an TexCoord1f instance from the pool.
 float getS()
           
 TexCoord1f mul(float vs)
          Multiplies this texCoord's values with vs.
 TexCoord1f mulS(float v)
          Multiplies this texCoord's S value with v.
static TexCoord1f newReadOnly(float s)
          Creates a new TexCoord1f instance.
static TexCoord1f newReadOnly(float[] values)
          Creates a new TexCoord1f instance.
static TexCoord1f newReadOnly(TexCoordf<?> texCoord)
          Creates a new TexCoord1f instance.
 float s()
           
 TexCoord1f s(float s)
          Sets the S (1st) texCoord component.
 TexCoord1f set(float s)
          Sets all values of this texCoord to the specified ones.
 TexCoord1f setS(float s)
          Sets the S (1st) texCoord component.
 TexCoord1f sub(float s)
          Subtracts the given parameters from this tuple's values.
 TexCoord1f subS(float v)
          Subtracts v from this texCoord's S value.
static void toPool(TexCoord1f o)
          Stores the given TexCoord1f instance in the pool.
 
Methods inherited from class org.openmali.vecmath2.TexCoordf
add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, deserialize, epsilonEquals, equals, get, get, get, getSerializationBufferSize, getSize, hashCode, interpolate, interpolate, isDirty, isReadOnly, newArray, readExternal, readFromBuffer, readFromBuffer, readFromBuffer, readFromBuffer, scaleAdd, scaleAdd, serialize, set, set, set, setClean, setZero, sub, sub, toString, writeExternal, writeToBuffer, writeToBuffer, writeToBuffer, writeToBuffer
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Constructor Detail

TexCoord1f

protected TexCoord1f(boolean readOnly,
                     float s)
Creates a new TexCoord1f instance.

Parameters:
readOnly -
s - the S element to use

TexCoord1f

protected TexCoord1f(boolean readOnly,
                     float[] values)
Creates a new TexCoord1f instance.

Parameters:
readOnly -
values - the values array (must be at least size 1)

TexCoord1f

protected TexCoord1f(boolean readOnly,
                     TexCoordf<?> texCoord)
Creates a new TexCoord1f instance.

Parameters:
readOnly -
texCoord - the TexCoordf to copy the values from

TexCoord1f

protected TexCoord1f(boolean readOnly)
Creates a new TexCoord1f instance.

Parameters:
readOnly -

TexCoord1f

public TexCoord1f(float s)
Creates a new TexCoord1f instance.

Parameters:
s - the S element to use

TexCoord1f

public TexCoord1f(float[] values)
Creates a new TexCoord1f instance.

Parameters:
values - the values array (must be at least size 1)

TexCoord1f

public TexCoord1f(TexCoordf<?> texCoord)
Creates a new TexCoord1f instance.

Parameters:
texCoord - the TexCoordf to copy the values from

TexCoord1f

public TexCoord1f()
Creates a new TexCoord1f instance.

Method Detail

set

public final TexCoord1f set(float s)
Sets all values of this texCoord to the specified ones.

Parameters:
s - the s element to use
Returns:
itself

setS

public final TexCoord1f setS(float s)
Sets the S (1st) texCoord component.

Parameters:
s -
Returns:
itself

getS

public final float getS()
Returns:
the S (1st) texCoord component.

s

public final TexCoord1f s(float s)
Sets the S (1st) texCoord component.

Parameters:
s -
Returns:
itself

s

public final float s()
Returns:
the S (1st) texCoord component.

addS

public final TexCoord1f addS(float v)
Adds v to this texCoord's S value.

Parameters:
v -
Returns:
itself

subS

public final TexCoord1f subS(float v)
Subtracts v from this texCoord's S value.

Parameters:
v -
Returns:
itself

mulS

public final TexCoord1f mulS(float v)
Multiplies this texCoord's S value with v.

Parameters:
v -
Returns:
itself

mul

public final TexCoord1f mul(float vs)
Multiplies this texCoord's values with vs.

Parameters:
vs -
Returns:
itself

divS

public final TexCoord1f divS(float v)
Divides this texCoord's S value by v.

Parameters:
v -
Returns:
itself

div

public final TexCoord1f div(float vs)
Divides this texCoord's values by vs.

Parameters:
vs -
Returns:
itself

add

public final TexCoord1f add(float s)
Adds the given parameters to this tuple's values.

Parameters:
s -
Returns:
itself

sub

public final TexCoord1f sub(float s)
Subtracts the given parameters from this tuple's values.

Parameters:
s -
Returns:
itself

equals

public boolean equals(java.lang.Object o)
Returns true if the Object t1 is of type Tuple3f and all of the data members of t1 are equal to the corresponding data members in this Tuple3f.

Overrides:
equals in class TexCoordf<TexCoord1f>
Parameters:
o - the Object with which the comparison is made
Returns:
true or false

clone

public TexCoord1f clone()
Creates and returns a copy of this object.

Overrides:
clone in class java.lang.Object
Returns:
a clone of this instance.
Throws:
java.lang.OutOfMemoryError - if there is not enough memory.
See Also:
Cloneable

newReadOnly

public static final TexCoord1f newReadOnly(float s)
Creates a new TexCoord1f instance.

Parameters:
s - the S element to use

newReadOnly

public static final TexCoord1f newReadOnly(float[] values)
Creates a new TexCoord1f instance.

Parameters:
values - the values array (must be at least size 1)

newReadOnly

public static final TexCoord1f newReadOnly(TexCoordf<?> texCoord)
Creates a new TexCoord1f instance.

Parameters:
texCoord - the TexCoordf to copy the values from

fromPool

public static TexCoord1f fromPool()
Allocates an TexCoord1f instance from the pool.


fromPool

public static TexCoord1f fromPool(float s)
Allocates an TexCoord1f instance from the pool.


toPool

public static void toPool(TexCoord1f o)
Stores the given TexCoord1f instance in the pool.

Parameters:
o -