C# 클래스 Oglr.Core.Triangulator2D

A static class exposing methods for triangulating 2D polygons.
파일 보기 프로젝트 열기: SteveDunn/oglr

공개 메소드들

메소드 설명
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[]