docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Line

    Line()

    Constructor

    Declaration
    public Line()

    Line(Vector2, Vector2)

    Constructor from 2 points

    Declaration
    public Line(Vector2 a, Vector2 b)
    Parameters
    Type Name Description
    Vector2 a

    First point of the line

    Vector2 b

    Second point of the line

    Line(float, float, float, float)

    Constructor with 4 coordinates

    Declaration
    public Line(float _x1, float _y1, float _x2, float _y2)
    Parameters
    Type Name Description
    float _x1

    X1 point

    float _y1

    Y2 point

    float _x2

    X2 point

    float _y2

    Y2 point

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)