| Package | org.generalrelativity.foam.dynamics.collision.fine.sat |
| Class | public class AxisProjection |
| Subclasses | CircleAxisProjection |
| Property | Defined by | ||
|---|---|---|---|
| max : Number maximum point of projection along axis
| AxisProjection | ||
| min : Number minimum point of projection along axis
| AxisProjection | ||
| Method | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
Projects the body onto the axis
| 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(body:IBody, axis:Vector)Creates a new AxisProjection
Parametersbody:IBody — IBody to project onto axis
|
|
axis:Vector — axis to project onto
|
See also
| 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
| project | () | method |
protected function project(body:IBody, axis:Vector):voidProjects the body onto the axis
Parametersbody:IBody — IBody to project
|
|
axis:Vector — Vector to project onto
|