C# Класс ThreadedPlatformer.Circle

Represents a 2D circle.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Center Vector2
Radius float

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

Метод Описание
Circle ( Vector2 position, float radius ) : System

Constructs a new circle.

Intersects ( Rectangle rectangle ) : bool

Determines if a circle intersects a rectangle.

Описание методов

Circle() публичный Метод

Constructs a new circle.
public Circle ( Vector2 position, float radius ) : System
position Vector2
radius float
Результат System

Intersects() публичный Метод

Determines if a circle intersects a rectangle.
public Intersects ( Rectangle rectangle ) : bool
rectangle Microsoft.Xna.Framework.Rectangle
Результат bool

Описание свойств

Center публичное свойство

Center position of the circle.
public Vector2 Center
Результат Vector2

Radius публичное свойство

Radius of the circle.
public float Radius
Результат float