Packageorg.generalrelativity.foam.dynamics.collision.fine.sat
Classpublic class AxisProjection
SubclassesCircleAxisProjection



Public Properties
 PropertyDefined by
  max : Number
maximum point of projection along axis
AxisProjection
  min : Number
minimum point of projection along axis
AxisProjection
Public Methods
 MethodDefined by
  
Creates a new AxisProjection
AxisProjection
  
getDistance(projection:AxisProjection):Number
Gets a signed distance- negative indicates range overlap, zero indicates coincidence and positive indicates a separation
AxisProjection
Protected Methods
 MethodDefined by
  
project(body:IBody, axis:Vector):void
Projects the body onto the axis
AxisProjection
Property detail
maxproperty
public var max:Number

maximum point of projection along axis

minproperty 
public var min:Number

minimum point of projection along axis

Constructor detail
AxisProjection()constructor
public function AxisProjection(body:IBody, axis:Vector)

Creates a new AxisProjection

Parameters
body:IBody — IBody to project onto axis
 
axis:Vector — axis to project onto

See also

Method detail
getDistance()method
public function getDistance(projection:AxisProjection):Number

Gets a signed distance- negative indicates range overlap, zero indicates coincidence and positive indicates a separation

Parameters
projection:AxisProjection — AxisProjection to compute distance with

Returns
Number — signed distance

See also

PolygonPolygonDetector
(same overlap concept in two dimensions)
project()method 
protected function project(body:IBody, axis:Vector):void

Projects the body onto the axis

Parameters
body:IBody — IBody to project
 
axis:Vector — Vector to project onto