docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method PointOnOppositeSideOfPolygon

    PointOnOppositeSideOfPolygon(List<Vector3>, Vector3)

    Finds the point on a polygon perimeter farthest from a specified point in space.

    Declaration
    public static Vector3 PointOnOppositeSideOfPolygon(List<Vector3> vertices, Vector3 point)
    Parameters
    Type Name Description
    List<Vector3> vertices

    Vertices defining the outline of a polygon.

    Vector3 point

    The position in world space to find the furthest intersection point.

    Returns
    Type Description
    Vector3

    A world space position of a point on the polygon that is as far from the input point as possible. Returns zero if vertices contains less than tree points.

    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)