Epok Engine

EPOK RUNTIME

epok::camera_target_direction

Function · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function

Rig convention: +pitch looks up, yaw zero looks along -Z, +roll about Z.

Belongs to
epok
Header
camera_direction.hpp
Overloads
1

Declaration

Declaration
inline void camera_target_direction(const int32_t* camera,const int32_t* target, bool reflect_x,bool front_only,uint16_t reference_yaw, uint16_t* result)

Rig convention: +pitch looks up, yaw zero looks along -Z, +roll about Z.

ParameterTypeMeaning
cameraconst int32_t *Not documented; consult the linked header.
targetconst int32_t *Not documented; consult the linked header.
reflect_xboolNot documented; consult the linked header.
front_onlyboolNot documented; consult the linked header.
reference_yawuint16_tNot documented; consult the linked header.
resultuint16_t *Not documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "camera_direction.hpp"

// Assume these named values have been initialized with valid data:
// const int32_t * camera
// const int32_t * target
// bool reflect_x
// bool front_only
// uint16_t reference_yaw
// uint16_t * result

epok::camera_target_direction(camera, target, reflect_x, front_only, reference_yaw, result);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/camera_direction.hpp:39

Related members