Packagecom.yogurt3d.core.helpers.boundingvolumes
Classpublic class BoundingSphere
InheritanceBoundingSphere Inheritance EngineObject Inheritance Object



Public Properties
 PropertyDefined By
  center : Vector3D
BoundingSphere
  radius : Number
BoundingSphere
  radiusSqr : Number
BoundingSphere
 InheritedsystemID : String
[read-only] Automatically assigned id.
EngineObject
 InheriteduserID : String
Identification string can be assigned by developer to identify objects.
EngineObject
Public Methods
 MethodDefined By
  
BoundingSphere(_radiusSqr:Number, _center:Vector3D)
BoundingSphere
  
[override]
BoundingSphere
 Inherited
dispose():void
Removes all external referances and clears internals.
EngineObject
 Inherited
EngineObject
 Inherited
disposeGPU():void
EngineObject
 Inherited
Removes all external referances and clears internals.
EngineObject
  
intersectTestAABB(_min:Vector3D, _max:Vector3D):int
BoundingSphere
  
BoundingSphere
  
intersectTestSphereParam(otherCenter:Vector3D, otherRadius:Number):Boolean
BoundingSphere
 Inherited
renew():void
Renews object internals and resets properties of object.
EngineObject
 Inherited
toString():String
Returns a string identifier on this object
EngineObject
Protected Methods
 MethodDefined By
 Inherited
EngineObject
  
[override]
BoundingSphere
Property Detail
centerproperty
center:Vector3D


Implementation
    public function get center():Vector3D
    public function set center(value:Vector3D):void
m_centerproperty 
YOGURT3D_INTERNAL var m_center:Vector3D

m_radiusproperty 
YOGURT3D_INTERNAL var m_radius:Number

m_radiusSqrproperty 
YOGURT3D_INTERNAL var m_radiusSqr:Number

radiusproperty 
radius:Number


Implementation
    public function get radius():Number
    public function set radius(value:Number):void
radiusSqrproperty 
radiusSqr:Number


Implementation
    public function get radiusSqr():Number
    public function set radiusSqr(value:Number):void
Constructor Detail
BoundingSphere()Constructor
public function BoundingSphere(_radiusSqr:Number, _center:Vector3D)



Parameters
_radiusSqr:Number
 
_center:Vector3D
Method Detail
clone()method
override public function clone():IEngineObject

Returns
IEngineObject
intersectTestAABB()method 
public function intersectTestAABB(_min:Vector3D, _max:Vector3D):int

Parameters

_min:Vector3D
 
_max:Vector3D

Returns
int
intersectTestSphere()method 
public function intersectTestSphere(other:BoundingSphere):Boolean

Parameters

other:BoundingSphere

Returns
Boolean
intersectTestSphereParam()method 
public function intersectTestSphereParam(otherCenter:Vector3D, otherRadius:Number):Boolean

Parameters

otherCenter:Vector3D
 
otherRadius:Number

Returns
Boolean
trackObject()method 
override protected function trackObject():void