Constructors
constructor
- new Circle(x, y, r): Circle
-
Parameters
-
x: number
-
y: number
-
r: number
Properties
r
r: number
rSquared
rSquared: number
x
x: number
y
y: number
Methods
contains
- contains(point, threshold?): boolean
-
Parameters
-
point: [number, number]
-
threshold: number = 1800000000
Returns boolean
- true if the point is inside the circle
intersects
- intersects(range): boolean
-
Returns boolean
- true if the circle intersects the MBR
Static
isCircle
- isCircle(obj): obj is Circle
-
Returns obj is Circle
平面图形:圆形