| 1 | #pragma once |
| 2 | |
| 3 | #include <math/seadBoundBox.h> |
| 4 | #include <math/seadMatrix.h> |
| 5 | #include <math/seadQuat.h> |
| 6 | #include <math/seadVector.h> |
| 7 | |
| 8 | namespace al { |
| 9 | class PlacementInfo; |
| 10 | class RollingCubePoseKeeper; |
| 11 | class LiveActor; |
| 12 | struct ActorInitInfo; |
| 13 | |
| 14 | RollingCubePoseKeeper* createRollingCubePoseKeeper(const LiveActor* actor, |
| 15 | const ActorInitInfo& initInfo); |
| 16 | RollingCubePoseKeeper* createRollingCubePoseKeeper(const sead::BoundBox3f& cubeSize, |
| 17 | const ActorInitInfo& initInfo); |
| 18 | bool nextRollingCubeKey(RollingCubePoseKeeper* keeper); |
| 19 | void setStartRollingCubeKey(RollingCubePoseKeeper* keeper); |
| 20 | void setRollingCubeKeyIndex(RollingCubePoseKeeper* keeper, s32); |
| 21 | bool isMoveTypeLoopRollingCube(const RollingCubePoseKeeper* keeper); |
| 22 | void fittingToCurrentKeyBoundingBox(sead::Quatf* outQuat, sead::Vector3f* outTrans, |
| 23 | const RollingCubePoseKeeper* keeper); |
| 24 | void calcCurrentKeyQT(sead::Quatf* outQuat, sead::Vector3f* outTrans, |
| 25 | const RollingCubePoseKeeper* keeper, const sead::Quatf& quat, |
| 26 | const sead::Vector3f& trans, f32 rate); |
| 27 | void getCurrentKeyQT(sead::Quatf* outQuat, sead::Vector3f* outTrans, |
| 28 | const RollingCubePoseKeeper* keeper); |
| 29 | f32 getCurrentKeyRotateDegree(const RollingCubePoseKeeper* keeper); |
| 30 | const sead::Vector3f& getCurrentKeySlideVec(const RollingCubePoseKeeper* keeper); |
| 31 | s32 getCurrentKeyIndex(const RollingCubePoseKeeper* keeper); |
| 32 | const PlacementInfo& getCurrentKeyPlacementInfo(const RollingCubePoseKeeper* keeper); |
| 33 | bool isMovementCurrentKeyRotate(const RollingCubePoseKeeper* keeper); |
| 34 | bool isMovementCurrentKeySlide(const RollingCubePoseKeeper* keeper); |
| 35 | f32 calcDistanceCurrentKeyRotateCenterToBoxCenter(const RollingCubePoseKeeper* keeper); |
| 36 | void calcMtxLandEffect(sead::Matrix34f* effectMtx, const RollingCubePoseKeeper* keeper, |
| 37 | const sead::Quatf& quat, const sead::Vector3f& trans); |
| 38 | void calcRollingCubeClippingInfo(sead::Vector3f* clippingTrans, f32* clippingRadius, |
| 39 | const RollingCubePoseKeeper* keeper, f32 offset); |
| 40 | } // namespace al |
| 41 | |