| Package | org.MARS.dynamics.collision.fine.sat |
| Class | public class AxisProjection |
| Subclasses | CircleAxisProjection, PolygonAxisProjection |
| Property | Defined by | ||
|---|---|---|---|
| max : Number maximum point of projection along axis
| AxisProjection | ||
| min : Number minimum point of projection along axis
| AxisProjection | ||
| Method | Defined by | ||
|---|---|---|---|
| AxisProjection | |||
|
getDistance(projection:AxisProjection):Number
Gets a signed distance- negative indicates range overlap, zero indicates coincidence
and positive indicates a separation
| AxisProjection | ||
| max | property |
public var max:Numbermaximum point of projection along axis
| min | property |
public var min:Numberminimum point of projection along axis
| AxisProjection | () | constructor |
public function AxisProjection()
| getDistance | () | method |
public function getDistance(projection:AxisProjection):NumberGets a signed distance- negative indicates range overlap, zero indicates coincidence and positive indicates a separation
Parametersprojection:AxisProjection — AxisProjection to compute distance with
|
Number — signed distance
|
See also