Class sandy.core.data.BSphere

Description

Bounding Sphere object used to clip the object faster.

Create a bounding Sphere that contains the whole object

Field Index

center, owner, radius

Method Index

new BSphere()
compute(), distance(), toString()

Constructor Detail

BSphere

public function BSphere(obj:Object3D)

Create a new BSphere Instance

Parameters

Field Detail

center

public center:Vector

radius

public radius:Number

owner

public owner:Object3D

Method Detail

compute

public function compute(pPoints:Array):Void

distance

public function distance(point:Vector):Number

return where a Position is from the sphere surface

Return

>0 if position is outside the sphere, <0 if inside, =0 if on the surface of thesphere

toString

public function toString(Void):String

Get a String represntation of the BSphere.

Return

A String representing the Bounding Sphere