C# 클래스 Sharpex2D.Math.Polygon

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

공개 메소드들

메소드 설명
FromEllipse ( Ellipse ellipse ) : Polygon

Creates a new Polygon from ellipse.

FromRectangle ( Rectangle rectangle ) : Polygon

Creates a new Polygon from rectangle.

Intersects ( Polygon other ) : bool

Checks if this Polygon intersects with another Polygon.

Intersects ( Polygon other, Vector2 &minimumTranslationVector ) : bool

Checks if this Polygon intersects with another Polygon.

Polygon ( ) : System

Initializes a new Polygon class.

Polygon ( IEnumerable points ) : System

Initializes a new Polygon class.

비공개 메소드들

메소드 설명
HasSeparatingAxisTo ( Polygon other, float &minOverlap, Vector2 &axis ) : bool

A value indicating whether the Polygon has a seperating axis.

ProjectTo ( Vector2 axis, float &min, float &max ) : void

Projects an axis.

메소드 상세

FromEllipse() 공개 정적인 메소드

Creates a new Polygon from ellipse.
public static FromEllipse ( Ellipse ellipse ) : Polygon
ellipse Ellipse The Ellipse.
리턴 Polygon

FromRectangle() 공개 정적인 메소드

Creates a new Polygon from rectangle.
public static FromRectangle ( Rectangle rectangle ) : Polygon
rectangle Rectangle The Rectangle.
리턴 Polygon

Intersects() 공개 메소드

Checks if this Polygon intersects with another Polygon.
public Intersects ( Polygon other ) : bool
other Polygon The other Polygon.
리턴 bool

Intersects() 공개 메소드

Checks if this Polygon intersects with another Polygon.
public Intersects ( Polygon other, Vector2 &minimumTranslationVector ) : bool
other Polygon The other Polygon.
minimumTranslationVector Vector2 /// Returns a vector with which the Polygon has to be translated at minimum to not /// collide with the second Polygon. ///
리턴 bool

Polygon() 공개 메소드

Initializes a new Polygon class.
public Polygon ( ) : System
리턴 System

Polygon() 공개 메소드

Initializes a new Polygon class.
public Polygon ( IEnumerable points ) : System
points IEnumerable The Points.
리턴 System