C# Class Box2D.Common.OBBViewportTransform

Orientated bounding box viewport transform
Inheritance: IViewportTransform
ファイルを表示 Open project: gerich-home/box2dnet

Public Methods

Method Description
GetScreenToWorld ( Vec2 argScreen, Vec2 argWorld ) : void
GetScreenVectorToWorld ( Vec2 argScreen, Vec2 argWorld ) : void
GetWorldToScreen ( Vec2 argWorld, Vec2 argScreen ) : void
GetWorldVectorToScreen ( Vec2 argWorld, Vec2 argScreen ) : void
MulByTransform ( Mat22 argTransform ) : void

Multiplies the obb transform by the given transform

OBBViewportTransform ( )
Set ( OBBViewportTransform vpt ) : void
SetCamera ( float x, float y, float scale ) : void
SetCenter ( float x, float y ) : void

Method Details

GetScreenToWorld() public method

public GetScreenToWorld ( Vec2 argScreen, Vec2 argWorld ) : void
argScreen Vec2
argWorld Vec2
return void

GetScreenVectorToWorld() public method

public GetScreenVectorToWorld ( Vec2 argScreen, Vec2 argWorld ) : void
argScreen Vec2
argWorld Vec2
return void

GetWorldToScreen() public method

public GetWorldToScreen ( Vec2 argWorld, Vec2 argScreen ) : void
argWorld Vec2
argScreen Vec2
return void

GetWorldVectorToScreen() public method

public GetWorldVectorToScreen ( Vec2 argWorld, Vec2 argScreen ) : void
argWorld Vec2
argScreen Vec2
return void

MulByTransform() public method

Multiplies the obb transform by the given transform
public MulByTransform ( Mat22 argTransform ) : void
argTransform Mat22
return void

OBBViewportTransform() public method

Set() public method

public Set ( OBBViewportTransform vpt ) : void
vpt OBBViewportTransform
return void

SetCamera() public method

public SetCamera ( float x, float y, float scale ) : void
x float
y float
scale float
return void

SetCenter() public method

public SetCenter ( float x, float y ) : void
x float
y float
return void