C# 클래스 Sharpex2D.Math.Circle

파일 보기 프로젝트 열기: ThuCommix/Sharpex2D

공개 메소드들

메소드 설명
Circle ( Vector2 position, float radius )

Creates a new Circle.

Distance ( Circle circle ) : float

Gets the Distance between this, and a second Circle.

Distance ( Circle circle1, Circle circle2 ) : float

Gets the Distance between two circles.

Intersects ( Circle circle1, Circle circle2 ) : bool

Indicates whether the first Circle intersects with the second Circle.

IntersectsWith ( Circle circle ) : bool

Indicates whether the Circle intersects with another Circle.

ToString ( ) : string

Converts the circle in to a string.

메소드 상세

Circle() 공개 메소드

Creates a new Circle.
public Circle ( Vector2 position, float radius )
position Vector2 The Position.
radius float The Radius.

Distance() 공개 메소드

Gets the Distance between this, and a second Circle.
public Distance ( Circle circle ) : float
circle Circle The second Circle.
리턴 float

Distance() 공개 정적인 메소드

Gets the Distance between two circles.
public static Distance ( Circle circle1, Circle circle2 ) : float
circle1 Circle The first Circle.
circle2 Circle The second Circle.
리턴 float

Intersects() 공개 정적인 메소드

Indicates whether the first Circle intersects with the second Circle.
public static Intersects ( Circle circle1, Circle circle2 ) : bool
circle1 Circle The first Circle.
circle2 Circle The second Circle.
리턴 bool

IntersectsWith() 공개 메소드

Indicates whether the Circle intersects with another Circle.
public IntersectsWith ( Circle circle ) : bool
circle Circle The second Circle.
리턴 bool

ToString() 공개 메소드

Converts the circle in to a string.
public ToString ( ) : string
리턴 string