Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
Aigen::Point Class Reference

aigenlib point with familiar initialization and finite-check spelling. More...

#include <compat.hpp>

Inheritance diagram for Aigen::Point:
dipla::aigenlib::Point

Public Member Functions

 Point (const dipla::aigenlib::Point &point)
 Accept the result of value arithmetic.
void setZero () noexcept
 Reset every coordinate to zero.
bool allFinite () const noexcept
 Validate coordinates.
Point eval () const
 Return a value, never an expression.
 Point (double east=0.0, double north=0.0, double altitude=0.0)
 Construct a point.
Public Member Functions inherited from dipla::aigenlib::Point
 Point (double east=0.0, double north=0.0, double altitude=0.0)
 Construct a point.
double & x () noexcept
 Access east.
double x () const noexcept
 Access east.
double & y () noexcept
 Access north.
double y () const noexcept
 Access north.
double & z () noexcept
 Access altitude.
double z () const noexcept
 Access altitude.
double & operator[] (std::size_t index)
 Checked coordinate access.
double operator[] (std::size_t index) const
 Checked coordinate access.
double norm () const noexcept
 Euclidean length.
bool finite () const noexcept
 Check every coordinate.
Point & operator+= (const Point &other) noexcept
 Add coordinates.
Point & operator-= (const Point &other) noexcept
 Subtract coordinates.

Static Public Member Functions

static Point Zero ()
 Construct the origin.

Additional Inherited Members

Public Attributes inherited from dipla::aigenlib::Point
std::array< double, 3 > coordinates {}
 East, north, altitude.

Detailed Description

aigenlib point with familiar initialization and finite-check spelling.

Arithmetic uses the underlying value operations without heap storage.

Constructor & Destructor Documentation

◆ Point() [1/2]

Aigen::Point::Point ( const dipla::aigenlib::Point & point)
inline

Accept the result of value arithmetic.

Parameters
pointCoordinates.

◆ Point() [2/2]

dipla::aigenlib::Point::Point ( double east = 0.0,
double north = 0.0,
double altitude = 0.0 )

Construct a point.

Parameters
eastEast.
northNorth.
altitudeHeight.

Member Function Documentation

◆ allFinite()

bool Aigen::Point::allFinite ( ) const
inlinenoexcept

Validate coordinates.

Returns
Whether finite.

◆ eval()

Point Aigen::Point::eval ( ) const
inline

Return a value, never an expression.

Returns
This point.

◆ setZero()

void Aigen::Point::setZero ( )
inlinenoexcept

Reset every coordinate to zero.

◆ Zero()

Point Aigen::Point::Zero ( )
inlinestatic

Construct the origin.

Returns
Zero coordinates.

The documentation for this class was generated from the following file: