org.ogre4j
Interface ISphere

All Superinterfaces:
INativeObject
All Known Implementing Classes:
Sphere

public interface ISphere
extends INativeObject


Method Summary
 IVector3 getCenter()
          Returns the center point of the sphere.
 float getRadius()
          Returns the radius of the sphere.
 boolean intersects(IAxisAlignedBox box)
          Returns whether or not this sphere intersects a box.
 boolean intersects(IPlane plane)
          Returns whether or not this sphere intersects a plane.
 boolean intersects(ISphere s)
          Returns whether or not this sphere intersects another sphere.
 boolean intersects(IVector3 v)
          Returns whether or not this sphere intersects a point.
 void setCenter(IVector3 center)
          Sets the center point of the sphere.
 void setRadius(float radius)
          Sets the radius of the sphere.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getRadius

float getRadius()
Returns the radius of the sphere.


setRadius

void setRadius(float radius)
Sets the radius of the sphere.


getCenter

IVector3 getCenter()
Returns the center point of the sphere.


setCenter

void setCenter(IVector3 center)
Sets the center point of the sphere.


intersects

boolean intersects(ISphere s)
Returns whether or not this sphere intersects another sphere.


intersects

boolean intersects(IAxisAlignedBox box)
Returns whether or not this sphere intersects a box.


intersects

boolean intersects(IPlane plane)
Returns whether or not this sphere intersects a plane.


intersects

boolean intersects(IVector3 v)
Returns whether or not this sphere intersects a point.



Copyright © 2007 netAllied GmbH. All Rights Reserved.