C# Класс Oglr.Core.Triangulator2D

A static class exposing methods for triangulating 2D polygons.
Показать файл Открыть проект

Открытые методы

Метод Описание
IsPointInShape ( Vector2 point ) : bool

Determines if a given point is located inside of a shape.

Triangulate ( ) : int[]

Triangulates a 2D polygon produced the indexes required to render the points as a triangle list.

Приватные методы

Метод Описание
GetPoints ( List points, int i, int &pim1, int &pi, int &pip1 ) : void

Given the list of point indices and the index, returns the three vertex indices.

Описание методов

IsPointInShape() публичный статический Метод

Determines if a given point is located inside of a shape.
public static IsPointInShape ( Vector2 point ) : bool
point Vector2 The point to test.
Результат bool

Triangulate() публичный статический Метод

Triangulates a 2D polygon produced the indexes required to render the points as a triangle list.
public static Triangulate ( ) : int[]
Результат int[]