Class UICoordinateSystem
Inheritance
UICoordinateSystem
Assembly: PopcorningGuineaPig.Engine.dll
Syntax
public static class UICoordinateSystem
Methods
|
Edit this page
View Source
GetAnchorPosition(AnchorPoint, int, int)
Declaration
public static Vector2 GetAnchorPosition(AnchorPoint anchor, int screenWidth, int screenHeight)
Parameters
Returns
|
Edit this page
View Source
PositionRelativeToAnchor(AnchorPoint, Vector2, int, int)
Declaration
public static Vector2 PositionRelativeToAnchor(AnchorPoint anchor, Vector2 offset, int screenWidth, int screenHeight)
Parameters
Returns
|
Edit this page
View Source
PositionRelativeToAnchorNormalized(AnchorPoint, Vector2, int, int)
Declaration
public static Vector2 PositionRelativeToAnchorNormalized(AnchorPoint anchor, Vector2 normalizedOffset, int screenWidth, int screenHeight)
Parameters
Returns
|
Edit this page
View Source
ProjectToScreen(Vector2, int, int)
Declaration
public static Vector2 ProjectToScreen(Vector2 normalizedPosition, int screenWidth, int screenHeight)
Parameters
| Type |
Name |
Description |
| Vector2 |
normalizedPosition |
|
| int |
screenWidth |
|
| int |
screenHeight |
|
Returns
|
Edit this page
View Source
ScreenToNormalized(Vector2, int, int)
Declaration
public static Vector2 ScreenToNormalized(Vector2 screenPosition, int screenWidth, int screenHeight)
Parameters
| Type |
Name |
Description |
| Vector2 |
screenPosition |
|
| int |
screenWidth |
|
| int |
screenHeight |
|
Returns