docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetIntersection

    GetIntersection(Line, Line, ref Vector2, float)

    Get Intersection status and point for 2 lines

    Declaration
    public static bool GetIntersection(AutoRouter.Line a, AutoRouter.Line b, ref Vector2 v, float tolerance = 0.1)
    Parameters
    Type Name Description
    AutoRouter.Line a

    First point

    AutoRouter.Line b

    Second point

    Vector2 v

    Intersection point coordinate

    float tolerance

    Check for intersection within this tolerance

    Returns
    Type Description
    bool

    True if lines intersect

    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)