跳到主要内容

Struct Circle

Represents a circle.

Properties

radius

The radius of this circle.

public float radius { get; }

center

The center point of this circle.

public Vector2 center { get; }

Constructors

Circle(Vector2 center, float radius)

public Circle(Vector2 center, float radius)

Circle()

public Circle()

Methods

Contains(Vector2 point)

Is the point point inside the circle?

public bool Contains(Vector2 point)

Overlap(Rect rect)

Does it overlap with the rect?

public bool Overlap(Rect rect)

Overlap(Circle circle)

Does it overlap with the circle?

public bool Overlap(Circle circle)