C# Class FarseerPhysics.ConvertUnits

Convert units between display and simulation units.
Mostrar archivo Open project: tinco/Farseer-Physics

Public Methods

Method Description
SetDisplayUnitToSimUnitRatio ( float displayUnitsPerSimUnit ) : void
ToDisplayUnits ( Vector2 simUnits ) : Vector2
ToDisplayUnits ( float x, float y ) : Vector2
ToDisplayUnits ( Microsoft.Xna.Framework.Vector3 simUnits ) : Microsoft.Xna.Framework.Vector3
ToDisplayUnits ( float simUnits ) : float
ToDisplayUnits ( int simUnits ) : float
ToDisplayUnits ( Vector2 &simUnits, Vector2 &displayUnits ) : void
ToDisplayUnits ( float x, float y, Vector2 &displayUnits ) : void
ToSimUnits ( Vector2 displayUnits ) : Vector2
ToSimUnits ( double x, double y ) : Vector2
ToSimUnits ( float x, float y ) : Vector2
ToSimUnits ( Microsoft.Xna.Framework.Vector3 displayUnits ) : Microsoft.Xna.Framework.Vector3
ToSimUnits ( double displayUnits ) : float
ToSimUnits ( float displayUnits ) : float
ToSimUnits ( int displayUnits ) : float
ToSimUnits ( Vector2 &displayUnits, Vector2 &simUnits ) : void
ToSimUnits ( float x, float y, Vector2 &simUnits ) : void

Method Details

SetDisplayUnitToSimUnitRatio() public static method

public static SetDisplayUnitToSimUnitRatio ( float displayUnitsPerSimUnit ) : void
displayUnitsPerSimUnit float
return void

ToDisplayUnits() public static method

public static ToDisplayUnits ( Vector2 simUnits ) : Vector2
simUnits Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework.Vector2

ToDisplayUnits() public static method

public static ToDisplayUnits ( float x, float y ) : Vector2
x float
y float
return Microsoft.Xna.Framework.Vector2

ToDisplayUnits() public static method

public static ToDisplayUnits ( Microsoft.Xna.Framework.Vector3 simUnits ) : Microsoft.Xna.Framework.Vector3
simUnits Microsoft.Xna.Framework.Vector3
return Microsoft.Xna.Framework.Vector3

ToDisplayUnits() public static method

public static ToDisplayUnits ( float simUnits ) : float
simUnits float
return float

ToDisplayUnits() public static method

public static ToDisplayUnits ( int simUnits ) : float
simUnits int
return float

ToDisplayUnits() public static method

public static ToDisplayUnits ( Vector2 &simUnits, Vector2 &displayUnits ) : void
simUnits Microsoft.Xna.Framework.Vector2
displayUnits Microsoft.Xna.Framework.Vector2
return void

ToDisplayUnits() public static method

public static ToDisplayUnits ( float x, float y, Vector2 &displayUnits ) : void
x float
y float
displayUnits Microsoft.Xna.Framework.Vector2
return void

ToSimUnits() public static method

public static ToSimUnits ( Vector2 displayUnits ) : Vector2
displayUnits Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework.Vector2

ToSimUnits() public static method

public static ToSimUnits ( double x, double y ) : Vector2
x double
y double
return Microsoft.Xna.Framework.Vector2

ToSimUnits() public static method

public static ToSimUnits ( float x, float y ) : Vector2
x float
y float
return Microsoft.Xna.Framework.Vector2

ToSimUnits() public static method

public static ToSimUnits ( Microsoft.Xna.Framework.Vector3 displayUnits ) : Microsoft.Xna.Framework.Vector3
displayUnits Microsoft.Xna.Framework.Vector3
return Microsoft.Xna.Framework.Vector3

ToSimUnits() public static method

public static ToSimUnits ( double displayUnits ) : float
displayUnits double
return float

ToSimUnits() public static method

public static ToSimUnits ( float displayUnits ) : float
displayUnits float
return float

ToSimUnits() public static method

public static ToSimUnits ( int displayUnits ) : float
displayUnits int
return float

ToSimUnits() public static method

public static ToSimUnits ( Vector2 &displayUnits, Vector2 &simUnits ) : void
displayUnits Microsoft.Xna.Framework.Vector2
simUnits Microsoft.Xna.Framework.Vector2
return void

ToSimUnits() public static method

public static ToSimUnits ( float x, float y, Vector2 &simUnits ) : void
x float
y float
simUnits Microsoft.Xna.Framework.Vector2
return void