weasel API - v0.8.0
    Preparing search index...

    Function rotationHandle

    • Rotation handle for a rotated rect: top-center of the (rotated) bounding box, offset outward along the local up-vector by distance world pixels. When pose.rotation is missing it's treated as 0.

      Parameters

      • pose: { height: number; rotation?: number; width: number; x: number; y: number }
      • distance: number = DEFAULT_ROTATION_HANDLE_DISTANCE

      Returns RotationHandle