C# Class Triangle2D, UnityUtils

ファイルを表示 Open project: mortennobel/UnityUtils Class Usage Examples

Public Methods

Method Description
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,

Private Methods

Method Description
sign ( Vector2D, p1, Vector2D, p2, Vector2D, p3 ) : double

Method Details

Cut() public method

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

GetLineSegments() public method

public GetLineSegments ( ) : LineSegment2D[],
return LineSegment2D[],

IsIntersecting() public method

public IsIntersecting ( LineSegment2D, ls ) : bool
ls LineSegment2D,
return bool

IsIntersecting() public method

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

IsPointInside() public method

public IsPointInside ( Vector2D, pt ) : bool
pt Vector2D,
return bool

To3D() public method

public To3D ( ) : Triangle,
return Triangle,

Triangle2D() public method

public Triangle2D ( ) : System
return System

Vertex() public method

public Vertex ( int i ) : Vector2D,
i int
return Vector2D,

Vertex3D() public method

public Vertex3D ( int i ) : Vector3D,
i int
return Vector3D,