docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method PointOnPolygonBoundsXZ

    PointOnPolygonBoundsXZ(Vector3, List<Vector3>, float)

    Determines if a point lies on the bounds of a polygon, ignoring the y components.

    Declaration
    public static bool PointOnPolygonBoundsXZ(Vector3 testPoint, List<Vector3> vertices, float epsilon = 1E-45)
    Parameters
    Type Name Description
    Vector3 testPoint

    The point to test.

    List<Vector3> vertices

    Vertices defining the outline of a polygon.

    float epsilon

    Custom epsilon value used when testing if the point lies on an edge.

    Returns
    Type Description
    bool

    True if the point lies on any edge of the polygon, 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)