docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ConvexPolygonArea

    ConvexPolygonArea(List<Vector3>)

    Finds the area of a convex polygon.

    Declaration
    public static float ConvexPolygonArea(List<Vector3> vertices)
    Parameters
    Type Name Description
    List<Vector3> vertices

    Vertices defining the outline of a polygon. The polygon must be convex, but can be in either winding order.

    Returns
    Type Description
    float

    The area of the polygon.

    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)