summaryrefslogtreecommitdiff
path: root/lib/hkStubs/Havok/Common/Base/Math/Matrix/hkRotationf.h
blob: 4385fa1364cec62fd4484c612a6451b8c1a1777b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

class hkRotationf : public hkMatrix3f {
public:
    void set(hkQuaternionfParameter q);

    void setAxisAngle(hkVector4fParameter axis, hkFloat32 angle);
    void setAxisAngle(hkVector4fParameter axis, hkSimdFloat32Parameter angle);

    bool isOrthonormal(hkFloat32 epsilon = hkFloat32(1e-5f)) const;

    bool isOk() const;
    void renormalize();
};