C# 클래스 Triangle2D, UnityUtils

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

공개 메소드들

메소드 설명
Cut ( LineSegment2D, line, double minDist = 0.1f ) : Triangle2D[],
GetLineSegments ( ) : LineSegment2D[],
IsIntersecting ( LineSegment2D, ls ) : bool
IsIntersecting ( LineSegment2D, ls, Vector2D, &p ) : bool
IsPointInside ( Vector2D, pt ) : bool
To3D ( ) : Triangle,
Triangle2D ( ) : System
Vertex ( int i ) : Vector2D,
Vertex3D ( int i ) : Vector3D,

비공개 메소드들

메소드 설명
sign ( Vector2D, p1, Vector2D, p2, Vector2D, p3 ) : double

메소드 상세

Cut() 공개 메소드

public Cut ( LineSegment2D, line, double minDist = 0.1f ) : Triangle2D[],
line LineSegment2D,
minDist double
리턴 Triangle2D[],

GetLineSegments() 공개 메소드

public GetLineSegments ( ) : LineSegment2D[],
리턴 LineSegment2D[],

IsIntersecting() 공개 메소드

public IsIntersecting ( LineSegment2D, ls ) : bool
ls LineSegment2D,
리턴 bool

IsIntersecting() 공개 메소드

public IsIntersecting ( LineSegment2D, ls, Vector2D, &p ) : bool
ls LineSegment2D,
p Vector2D,
리턴 bool

IsPointInside() 공개 메소드

public IsPointInside ( Vector2D, pt ) : bool
pt Vector2D,
리턴 bool

To3D() 공개 메소드

public To3D ( ) : Triangle,
리턴 Triangle,

Triangle2D() 공개 메소드

public Triangle2D ( ) : System
리턴 System

Vertex() 공개 메소드

public Vertex ( int i ) : Vector2D,
i int
리턴 Vector2D,

Vertex3D() 공개 메소드

public Vertex3D ( int i ) : Vector3D,
i int
리턴 Vector3D,