C# Класс Sharpex2D.Math.Circle

Показать файл Открыть проект

Открытые методы

Метод Описание
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