Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Class UICoordinateSystem

    Inheritance
    object
    UICoordinateSystem
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: PopcorningGuineaPig.Engine.UI
    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
    Type Name Description
    AnchorPoint anchor
    int screenWidth
    int screenHeight
    Returns
    Type Description
    Vector2
    | Edit this page View Source

    PositionRelativeToAnchor(AnchorPoint, Vector2, int, int)

    Declaration
    public static Vector2 PositionRelativeToAnchor(AnchorPoint anchor, Vector2 offset, int screenWidth, int screenHeight)
    Parameters
    Type Name Description
    AnchorPoint anchor
    Vector2 offset
    int screenWidth
    int screenHeight
    Returns
    Type Description
    Vector2
    | Edit this page View Source

    PositionRelativeToAnchorNormalized(AnchorPoint, Vector2, int, int)

    Declaration
    public static Vector2 PositionRelativeToAnchorNormalized(AnchorPoint anchor, Vector2 normalizedOffset, int screenWidth, int screenHeight)
    Parameters
    Type Name Description
    AnchorPoint anchor
    Vector2 normalizedOffset
    int screenWidth
    int screenHeight
    Returns
    Type Description
    Vector2
    | 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
    Type Description
    Vector2
    | 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
    Type Description
    Vector2
    • Edit this page
    • View Source
    In this article
    Back to top © 2024 Popcorning Guinea Pig Game Engine. A custom C# game engine for indie developers.