/** * @en The position of the circle, which is a Vec3 vector * @zh 圆的直径,是一个 Vec3 向量 */ get position() { returnthis._position }
/** * @en The radius of the circle * @zh 圆的半径 */ get radius() { returnthis._radius }
/** * @en Determines if it intersects with another circle * @zh 判断是否与另外一个圆相交 */ public intersect(circle: ICircle) { return Vec3.distance(this.position, circle.position) < this.radius + circle.radius } } }