Struct rotation

Inheritance Relationships

Base Type

  • public quat

Struct Documentation

struct legion::core::rotation : public quat

Public Functions

inline rotation()
inline rotation(float w, float x, float y, float z)
rotation(const rotation&) = default
rotation(rotation&&) = default
inline rotation(const math::quat &src)
rotation &operator=(const rotation&) = default
rotation &operator=(rotation&&) = default
inline rotation &operator=(const math::quat &src)
inline rotation &operator=(math::quat &&src)
inline math::vec3 right()
inline math::vec3 up()
inline math::vec3 forward()
inline math::mat3 matrix()

Public Static Functions

static inline rotation lookat(math::vec3 position, math::vec3 center, math::vec3 up = math::vec3::up)