WPILibC++ 2023.4.3-108-ge5452e3
frc::CoordinateAxis Class Reference

A class representing a coordinate system axis within the NWU coordinate system. More...

#include <frc/geometry/CoordinateAxis.h>

Public Member Functions

 CoordinateAxis (double x, double y, double z)
 Constructs a coordinate system axis within the NWU coordinate system and normalizes it. More...
 
 CoordinateAxis (const CoordinateAxis &)=default
 
CoordinateAxisoperator= (const CoordinateAxis &)=default
 
 CoordinateAxis (CoordinateAxis &&)=default
 
CoordinateAxisoperator= (CoordinateAxis &&)=default
 

Static Public Member Functions

static const CoordinateAxisN ()
 Returns a coordinate axis corresponding to +X in the NWU coordinate system. More...
 
static const CoordinateAxisS ()
 Returns a coordinate axis corresponding to -X in the NWU coordinate system. More...
 
static const CoordinateAxisE ()
 Returns a coordinate axis corresponding to -Y in the NWU coordinate system. More...
 
static const CoordinateAxisW ()
 Returns a coordinate axis corresponding to +Y in the NWU coordinate system. More...
 
static const CoordinateAxisU ()
 Returns a coordinate axis corresponding to +Z in the NWU coordinate system. More...
 
static const CoordinateAxisD ()
 Returns a coordinate axis corresponding to -Z in the NWU coordinate system. More...
 

Friends

class CoordinateSystem
 

Detailed Description

A class representing a coordinate system axis within the NWU coordinate system.

Constructor & Destructor Documentation

◆ CoordinateAxis() [1/3]

frc::CoordinateAxis::CoordinateAxis ( double  x,
double  y,
double  z 
)

Constructs a coordinate system axis within the NWU coordinate system and normalizes it.

Parameters
xThe x component.
yThe y component.
zThe z component.

◆ CoordinateAxis() [2/3]

frc::CoordinateAxis::CoordinateAxis ( const CoordinateAxis )
default

◆ CoordinateAxis() [3/3]

frc::CoordinateAxis::CoordinateAxis ( CoordinateAxis &&  )
default

Member Function Documentation

◆ D()

static const CoordinateAxis & frc::CoordinateAxis::D ( )
static

Returns a coordinate axis corresponding to -Z in the NWU coordinate system.

◆ E()

static const CoordinateAxis & frc::CoordinateAxis::E ( )
static

Returns a coordinate axis corresponding to -Y in the NWU coordinate system.

◆ N()

static const CoordinateAxis & frc::CoordinateAxis::N ( )
static

Returns a coordinate axis corresponding to +X in the NWU coordinate system.

◆ operator=() [1/2]

CoordinateAxis & frc::CoordinateAxis::operator= ( const CoordinateAxis )
default

◆ operator=() [2/2]

CoordinateAxis & frc::CoordinateAxis::operator= ( CoordinateAxis &&  )
default

◆ S()

static const CoordinateAxis & frc::CoordinateAxis::S ( )
static

Returns a coordinate axis corresponding to -X in the NWU coordinate system.

◆ U()

static const CoordinateAxis & frc::CoordinateAxis::U ( )
static

Returns a coordinate axis corresponding to +Z in the NWU coordinate system.

◆ W()

static const CoordinateAxis & frc::CoordinateAxis::W ( )
static

Returns a coordinate axis corresponding to +Y in the NWU coordinate system.

Friends And Related Function Documentation

◆ CoordinateSystem

friend class CoordinateSystem
friend

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