@esengine/nova-ecs-math - v1.0.5
    Preparing search index...

    Class FixedCircle

    Circle using fixed-point arithmetic for deterministic calculations 使用定点算术的圆形,用于确定性计算

    Index

    Constructors

    Properties

    center: FixedVector2
    radius: Fixed
    UNIT: FixedCircle = ...
    ZERO: FixedCircle = ...

    Accessors

    • get diameter(): Fixed

      Get the diameter of the circle 获取圆的直径

      Returns Fixed

    • set diameter(value: number | Fixed): void

      Set the diameter of the circle (updates radius) 设置圆的直径(更新半径)

      Parameters

      Returns void

    • get x(): Fixed

      Get the X coordinate of the center 获取中心点的X坐标

      Returns Fixed

    • set x(value: number | Fixed): void

      Set the X coordinate of the center 设置中心点的X坐标

      Parameters

      Returns void

    • get y(): Fixed

      Get the Y coordinate of the center 获取中心点的Y坐标

      Returns Fixed

    • set y(value: number | Fixed): void

      Set the Y coordinate of the center 设置中心点的Y坐标

      Parameters

      Returns void

    Methods

    • Check if this circle completely contains another circle 检查此圆是否完全包含另一个圆

      Parameters

      Returns boolean

    • Check if a point is inside this circle (inclusive of edge) 检查点是否在此圆内(包含边缘)

      Parameters

      Returns boolean

    • Check if this circle intersects with another circle 检查此圆是否与另一个圆相交

      Parameters

      Returns boolean

    • Check if this circle intersects with a rectangle 检查此圆是否与矩形相交

      Parameters

      Returns boolean

    • Check if this circle is completely contained within another circle 检查此圆是否完全被另一个圆包含

      Parameters

      Returns boolean

    • Convert to a regular number array [x, y, radius] 转换为普通数字数组 [x, y, radius]

      Returns number[]

    • Convert to string representation 转换为字符串表示

      Returns string