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

    Function poseRotationOf

    • Resolve a pose's rotation transform, or null when the pose carries no effective rotation. Non-null requires a nonzero rotation and all four AABB fields (x, y, width, height) — the pivot is the unrotated AABB center. Poses missing any AABB field (e.g. a bare polygon pose) or with zero/absent rotation return null, so callers can treat null as "draw / hit / clip in the local frame, no rotation step."

      Parameters

      • pose: unknown

      Returns PoseRotation | null