crystalspace.jbind.impl.csgeom.segment
Class csSegment2

java.lang.Object
  extended bycrystalspace.jbind.impl.csNativeObject
      extended bycrystalspace.jbind.impl.csgeom.segment.csSegment2
All Implemented Interfaces:
iPointer

public class csSegment2
extends csNativeObject

A 2D line segment.

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

Field Summary
 
Fields inherited from class crystalspace.jbind.impl.csNativeObject
ImplFactory, nPointer
 
Constructor Summary
csSegment2()
          Make a new uninitialized segment.
csSegment2(csVector2 s, csVector2 e)
          Make a new segment and initialize with the given values.
csSegment2(iPointer nPointer)
           
 
Method Summary
 csVector2 end()
          Get the end of the segment.
 void end(csVector2 End)
          Set the end of the segment.
protected  boolean isNativePointerValidSafe(long nPointer)
           
protected  void nDelete(long pointer)
           
 void set(csVector2 s, csVector2 e)
          Set segment to given values.
 void setEnd(csVector2 e)
          Set the end of the segment.
 void setStart(csVector2 s)
          Set the start of the segment.
 csVector2 start()
          Get the start of the segment.
 void start(csVector2 Start)
          Set the start of the segment.
 
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

csSegment2

public csSegment2(iPointer nPointer)
Parameters:
nPointer -

csSegment2

public csSegment2(csVector2 s,
                  csVector2 e)
Make a new segment and initialize with the given values. Definition at line 44 of file segment.h.

Parameters:
s -
e -

csSegment2

public csSegment2()
Make a new uninitialized segment. Definition at line 46 of file segment.h.

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()

end

public csVector2 end()
Get the end of the segment. Definition at line 70 of file segment.h.

Returns:

end

public void end(csVector2 End)
Set the end of the segment. Definition at line 64 of file segment.h. Referenced by csPoly2DEdges::AddEdge(), csIntersect2::Plane(), csIntersect2::PlaneNoTest(), csPlane2::Set(), and csMath2::WhichSide2D().

Parameters:
End -

set

public void set(csVector2 s,
                csVector2 e)
Set segment to given values. Definition at line 51 of file segment.h.

Parameters:
s -
e -

setEnd

public void setEnd(csVector2 e)
Set the end of the segment. Definition at line 58 of file segment.h. Referenced by csBox2::GetEdge().

Parameters:
e -

setStart

public void setStart(csVector2 s)
Set the start of the segment. Definition at line 55 of file segment.h. Referenced by csBox2::GetEdge().

Parameters:
s -

start

public csVector2 start()
Get the start of the segment. Definition at line 67 of file segment.h.

Returns:

start

public void start(csVector2 Start)
Set the start of the segment. Definition at line 61 of file segment.h. Referenced by csPoly2DEdges::AddEdge(), csIntersect2::Plane(), csIntersect2::PlaneNoTest(), csPlane2::Set(), and csMath2::WhichSide2D().

Parameters:
Start -