shz_quat_from_look_axis
shz_quat_t shz_quat_from_look_axis(shz_vec3_t forward, shz_vec3_t up) SHZ_NOEXCEPT;Creates a quaternion looking in the given direction with the given reference direction.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
forward | shz_vec3_t | |
up | shz_vec3_t |
Returns
Section titled “Returns”shz_quat_t
Availability
Section titled “Availability”- C++ equivalent:
shz::quat::from_look_axis - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_quat.h:116 - Module: Quaternion, section "Initialization"