Interface ReadonlyCircle

Read-only circle shape.

x and y refer to the circle's center.

interface ReadonlyCircle {
    radius: number;
    x: number;
    y: number;
    clone(): Circle;
    containsPoint(point: Vec2Like): boolean;
    equals(other: CircleLike, epsilon?: number): boolean;
    intersectsCircle(other: CircleLike): boolean;
    intersectsRect(rect: RectLike): boolean;
}

Hierarchy (View Summary)

Implemented by

Properties

radius: number
x: number
y: number

Methods