Packageorg.MARS.dynamics.collision.fine.sat
Classpublic class AxisProjection
SubclassesCircleAxisProjection, PolygonAxisProjection



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
  
AxisProjection
  
getDistance(projection:AxisProjection):Number
Gets a signed distance- negative indicates range overlap, zero indicates coincidence and positive indicates a separation
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()
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)