Epok Engine

EPOK RUNTIME

epok::camera_projection::point

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

Camera coordinates and focal lengths are Q12; screen output is top-left +Y down.

Belongs to
epok::camera_projection
Header
camera_projection.hpp
Overloads
1

Declaration

Declaration
inline bool point(const int32_t* camera,int32_t focal_x,int32_t focal_y,int width,int height,int32_t* screen)

Camera coordinates and focal lengths are Q12; screen output is top-left +Y down.

ParameterTypeMeaning
cameraconst int32_t *Not documented; consult the linked header.
focal_xint32_tNot documented; consult the linked header.
focal_yint32_tNot documented; consult the linked header.
widthintNot documented; consult the linked header.
heightintNot documented; consult the linked header.
screenint32_t *Not documented; consult the linked header.

Returns: bool. Consult the linked header for its meaning.

Example sketch

C++ example
#include "camera_projection.hpp"

// Assume these named values have been initialized with valid data:
// const int32_t * camera
// int32_t focal_x
// int32_t focal_y
// int width
// int height
// int32_t * screen

auto result = epok::camera_projection::point(camera, focal_x, focal_y, width, height, screen);

Trade-offs and warnings

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

Declared in runtime/camera_projection.hpp:17

Related members