OpenLexocad  27.1
Geom::CompoundPlaneAngle Class Reference

A compound measure of plane angle in degrees, minutes, seconds, and optionally millionth-seconds of arc. More...

#include <CompoundPlaneAngle.h>

Public Member Functions

 CompoundPlaneAngle ()
 Constructs a CompoundPlaneAngle at 0 degrees, 0 minutes, 0 seconds. More...
 
 CompoundPlaneAngle (int degrees, int minutes, int seconds)
 Constructs a CompoundPlaneAngle from degrees, minutes and seconds. More...
 
 CompoundPlaneAngle (int degrees, int minutes, int seconds, int millionthSeconds)
 Constructs a CompoundPlaneAngle from degrees, minutes, seconds and millionth-seconds. More...
 
void setDegrees (int degrees)
 The first integer measure is the number of degrees in the range {360; -360}. Throws Base::OutOfRange if degrees are out of range. More...
 
int getDegrees () const
 Get degrees. More...
 
void setMinutes (int minutes)
 The second integer measure is the number of minutes in the range {60; -60}. Throws Base::OutOfRange if minutes are out of range. More...
 
int getMinutes () const
 Get minutes. More...
 
void setSeconds (int seconds)
 The third integer measure is the number of seconds in the range {60; -60}. Throws Base::OutOfRange if seconds are out of range. More...
 
int getSeconds () const
 Get seconds. More...
 
void setMillionthSeconds (int millionthSeconds)
 
int getMillionthSeconds () const
 Get third integer. More...
 
std::vector< int > getValues () const
 Get values. More...
 
bool operator== (const Geom::CompoundPlaneAngle &other) const
 
bool operator!= (const Geom::CompoundPlaneAngle &other) const
 

Detailed Description

A compound measure of plane angle in degrees, minutes, seconds, and optionally millionth-seconds of arc.

Constructor & Destructor Documentation

◆ CompoundPlaneAngle() [1/3]

Geom::CompoundPlaneAngle::CompoundPlaneAngle ( )

Constructs a CompoundPlaneAngle at 0 degrees, 0 minutes, 0 seconds.

◆ CompoundPlaneAngle() [2/3]

Geom::CompoundPlaneAngle::CompoundPlaneAngle ( int  degrees,
int  minutes,
int  seconds 
)

Constructs a CompoundPlaneAngle from degrees, minutes and seconds.

◆ CompoundPlaneAngle() [3/3]

Geom::CompoundPlaneAngle::CompoundPlaneAngle ( int  degrees,
int  minutes,
int  seconds,
int  millionthSeconds 
)

Constructs a CompoundPlaneAngle from degrees, minutes, seconds and millionth-seconds.

Member Function Documentation

◆ getDegrees()

int Geom::CompoundPlaneAngle::getDegrees ( ) const

Get degrees.

◆ getMillionthSeconds()

int Geom::CompoundPlaneAngle::getMillionthSeconds ( ) const

Get third integer.

◆ getMinutes()

int Geom::CompoundPlaneAngle::getMinutes ( ) const

Get minutes.

◆ getSeconds()

int Geom::CompoundPlaneAngle::getSeconds ( ) const

Get seconds.

◆ getValues()

std::vector<int> Geom::CompoundPlaneAngle::getValues ( ) const

Get values.

◆ operator!=()

bool Geom::CompoundPlaneAngle::operator!= ( const Geom::CompoundPlaneAngle other) const

◆ operator==()

bool Geom::CompoundPlaneAngle::operator== ( const Geom::CompoundPlaneAngle other) const

◆ setDegrees()

void Geom::CompoundPlaneAngle::setDegrees ( int  degrees)

The first integer measure is the number of degrees in the range {360; -360}. Throws Base::OutOfRange if degrees are out of range.

◆ setMillionthSeconds()

void Geom::CompoundPlaneAngle::setMillionthSeconds ( int  millionthSeconds)

The optional fourth integer measure is the number of millionth-seconds in the range {1 000 000; -1 000 000}. Throws Base::OutOfRange if millionth-seconds are out of range.

◆ setMinutes()

void Geom::CompoundPlaneAngle::setMinutes ( int  minutes)

The second integer measure is the number of minutes in the range {60; -60}. Throws Base::OutOfRange if minutes are out of range.

◆ setSeconds()

void Geom::CompoundPlaneAngle::setSeconds ( int  seconds)

The third integer measure is the number of seconds in the range {60; -60}. Throws Base::OutOfRange if seconds are out of range.


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