crystalspace.jbind.impl.csgeom.tri
Class csTriangle

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csgeom.tri.csTriangle
All Implemented Interfaces:
iPointer

public class csTriangle
extends csNativeObject

A triangle. Note that this structure is only valid if used in combination with a vertex or edge table. 'a', 'b', and 'c' are then indices in that table (either vertices or edges).

Author:
Java wrapper - Quentin Anciaux, c++ version - http://crystal.sourceforge.net/docs/online/pubapi/structcsTriangle.php

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csTriangle()
          Empty default ructor.
csTriangle(csTriangle t)
          Copy constructor.
csTriangle(int _a, int _b, int _c)
          Convenience constructor, builds a triangle with initializers.
csTriangle(iPointer nPointer)
           
 
Method Summary
protected  boolean isNativePointerValidSafe(long nPointer)
           
protected  void nDelete(long pointer)
           
 csTriangle set(csTriangle t)
          Assignment.
 void set(int _a, int _b, int _c)
          Set the values.
 
Methods inherited from class crystalspace.jbind.impl.csNativeObject
changePointer, equals, finalize, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

csTriangle

public csTriangle(iPointer nPointer)
Parameters:
nPointer -

csTriangle

public csTriangle()
Empty default ructor. Definition at line 38 of file tri.h.


csTriangle

public csTriangle(int _a,
                  int _b,
                  int _c)
Convenience constructor, builds a triangle with initializers. Definition at line 41 of file tri.h.

Parameters:
_a -
_b -
_c -

csTriangle

public csTriangle(csTriangle t)
Copy constructor. Definition at line 44 of file tri.h. References a, b, and c.

Parameters:
t -
Method Detail

nDelete

protected void nDelete(long pointer)
Specified by:
nDelete in class csNativeObject
See Also:
csNativeObject.nDelete(long)

isNativePointerValidSafe

protected boolean isNativePointerValidSafe(long nPointer)
Specified by:
isNativePointerValidSafe in class csNativeObject
See Also:
crystalspace.jbind.impl.csNativeObject#isNativePointerValidSafe()

set

public csTriangle set(csTriangle t)
Assignment. Definition at line 52 of file tri.h. References a, b, and c.

Parameters:
t -
Returns:

set

public void set(int _a,
                int _b,
                int _c)
Set the values. Definition at line 61 of file tri.h.

Parameters:
_a -
_b -
_c -