C# 클래스 Polygon, UnityUtils

파일 보기 프로젝트 열기: mortennobel/UnityUtils 1 사용 예제들

공개 메소드들

메소드 설명
AddVertex ( Vector3 v ) : void
ComputeNormal ( ) : Vector3
FlipNormal ( ) : void
IntersectTriangle ( Triangle, triangle ) : List
IsPointInside ( Vector2 point ) : bool
Join ( Polygon, other ) : Polygon,
Length ( ) : int
LineLineIntersection ( Vector2 l1From, Vector2 l1To, Vector2 l2From, Vector2 l2To, Vector2 &intersection ) : bool
Polygon ( ) : System.Collections
Polygon ( Vector3 ps ) : System.Collections
Polygon ( Vector3D, ps ) : System.Collections
SetVertex ( int i, Vector3 pos ) : void
V2 ( Vector3 v ) : Vector2D,
V2 ( Vector3D, v ) : Vector2D,
Vertex ( int i ) : Vector3

비공개 메소드들

메소드 설명
ContainsVertex ( Vector3 p ) : bool
GetHitInfoByPolyIndex ( int index, List infos ) : List

메소드 상세

AddVertex() 공개 메소드

public AddVertex ( Vector3 v ) : void
v Vector3
리턴 void

ComputeNormal() 공개 메소드

public ComputeNormal ( ) : Vector3
리턴 Vector3

FlipNormal() 공개 메소드

public FlipNormal ( ) : void
리턴 void

IntersectTriangle() 공개 메소드

public IntersectTriangle ( Triangle, triangle ) : List
triangle Triangle,
리턴 List

IsPointInside() 공개 메소드

public IsPointInside ( Vector2 point ) : bool
point Vector2
리턴 bool

Join() 공개 메소드

public Join ( Polygon, other ) : Polygon,
other Polygon,
리턴 Polygon,

Length() 공개 메소드

public Length ( ) : int
리턴 int

LineLineIntersection() 공개 정적인 메소드

public static LineLineIntersection ( Vector2 l1From, Vector2 l1To, Vector2 l2From, Vector2 l2To, Vector2 &intersection ) : bool
l1From Vector2
l1To Vector2
l2From Vector2
l2To Vector2
intersection Vector2
리턴 bool

Polygon() 공개 메소드

public Polygon ( ) : System.Collections
리턴 System.Collections

Polygon() 공개 메소드

public Polygon ( Vector3 ps ) : System.Collections
ps Vector3
리턴 System.Collections

Polygon() 공개 메소드

public Polygon ( Vector3D, ps ) : System.Collections
ps Vector3D,
리턴 System.Collections

SetVertex() 공개 메소드

public SetVertex ( int i, Vector3 pos ) : void
i int
pos Vector3
리턴 void

V2() 공개 정적인 메소드

public static V2 ( Vector3 v ) : Vector2D,
v Vector3
리턴 Vector2D,

V2() 공개 정적인 메소드

public static V2 ( Vector3D, v ) : Vector2D,
v Vector3D,
리턴 Vector2D,

Vertex() 공개 메소드

public Vertex ( int i ) : Vector3
i int
리턴 Vector3