class ProjTransform

Re-project Box2D objects.

Methods

__construct(Projection $source, Projection $destination)

ProjTransform constructor.

forward(Box2D $box)

Transform box from source to destination projection.

backward(Box2D $box)

Transform box from destination to source projection.

Details

at line 19
__construct(Projection $source, Projection $destination)

ProjTransform constructor.

Parameters

Projection $source Source projection
Projection $destination Destination projection

at line 27
Box2D forward(Box2D $box)

Transform box from source to destination projection.

Parameters

Box2D $box

Return Value

Box2D

at line 35
Box2D backward(Box2D $box)

Transform box from destination to source projection.

Parameters

Box2D $box

Return Value

Box2D