FERS 1.0.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
math::Coord Class Reference

Represents a position in 3D space with an associated time. More...

#include "coord.h"

+ Collaboration diagram for math::Coord:

Public Member Functions

bool operator< (const Coord &b) const noexcept
 Comparison operator based on the time component.
 
Coordoperator= (RealType a) noexcept
 Assignment operator to set the time and position.
 

Public Attributes

Vec3 pos
 3D position
 
RealType t
 Time.
 

Detailed Description

Represents a position in 3D space with an associated time.

Definition at line 23 of file coord.h.

Member Function Documentation

◆ operator<()

bool math::Coord::operator< ( const Coord b) const
noexcept

Comparison operator based on the time component.

Parameters
bThe other Coord to compare.
Returns
True if the current object's time is less than the other.

Definition at line 34 of file coord.h.

34{ return t < b.t; }
RealType t
Time.
Definition coord.h:26

References t.

◆ operator=()

Coord & math::Coord::operator= ( RealType  a)
noexcept

Assignment operator to set the time and position.

Parameters
aScalar value to assign to the position and time.
Returns
Reference to the modified Coord object.

Definition at line 42 of file coord.h.

43 {
44 t = a;
45 pos = {a, a, a};
46 return *this;
47 }
Vec3 pos
3D position
Definition coord.h:25

References pos, and t.

Member Data Documentation

◆ pos

◆ t


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