Search Results for

    Show / Hide Table of Contents

    Class Vector2Extensions

    Inheritance
    object
    Vector2Extensions
    Namespace: GGL.Extensions
    Assembly: GGL.dll
    Syntax
    public static class Vector2Extensions

    Methods

    | Edit this page View Source

    ProjectToLine(Vector2, Line2D)

    Project a vector to a line

    Declaration
    public static Vector2 ProjectToLine(this Vector2 vector, Line2D line)
    Parameters
    Type Name Description
    Vector2 vector
    Line2D line
    Returns
    Type Description
    Vector2

    Vector that is part of the line

    | Edit this page View Source

    Rotate(Vector2, float, RotationType)

    Rotate a vector by an angle.

    Declaration
    public static Vector2 Rotate(this Vector2 vector, float angle, RotationType mode = RotationType.DEG)
    Parameters
    Type Name Description
    Vector2 vector
    float angle
    RotationType mode
    Returns
    Type Description
    Vector2
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX