docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method PolygonInPolygon

    PolygonInPolygon(List<Vector3>, List<Vector3>)

    Determines if one polygon lies completely inside another coplanar polygon.

    Declaration
    public static bool PolygonInPolygon(List<Vector3> polygonA, List<Vector3> polygonB)
    Parameters
    Type Name Description
    List<Vector3> polygonA

    The polygon to test for lying inside polygonB.

    List<Vector3> polygonB

    The polygon to test for containing polygonA. Must be convex and coplanar with polygonA.

    Returns
    Type Description
    bool

    True if polygonA lies completely inside polygonB, false otherwise.

    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)