Epok Engine

EPOK RUNTIME

epok::world2d::nav_detail::area2

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

Area of (b - a) x (c - a), in raw Q12 squared.

Belongs to
epok::world2d::nav_detail
Header
world2d_navigation.hpp
Overloads
1

Declaration

Declaration
inline int64_t area2(const Fixed* a, const Fixed* b, const Fixed* c)

Area of (b - a) x (c - a), in raw Q12 squared.

ParameterTypeMeaning
aconst Fixed *Not documented; consult the linked header.
bconst Fixed *Not documented; consult the linked header.
cconst Fixed *Not documented; consult the linked header.

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

Example sketch

C++ example
#include "world2d_navigation.hpp"

// Assume these named values have been initialized with valid data:
// const Fixed * a
// const Fixed * b
// const Fixed * c

auto result = epok::world2d::nav_detail::area2(a, b, c);

Trade-offs and warnings

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

Declared in runtime/world2d_navigation.hpp:97

Related members