API Documentation
Loading...
Searching...
No Matches
ThreePartAngleUnit Struct Reference

An angle unit that contains two-parts (Degrees, Minutes, Seconds) More...

#include <UnitTypes.h>

Inheritance diagram for ThreePartAngleUnit:
[legend]
Collaboration diagram for ThreePartAngleUnit:
[legend]

Public Member Functions

virtual Unitclone (const String &name, const TranslatedString &translated_id) const override
 
fltp08 epsilon (fltp08 value, uint01 direction=X) const override
 
fltp08 fromString (const String &unit_string, uint01 direction=X) const override
 
String getNextPreferredSeparator (const String &current_string, uint01 direction=X) const override
 
 ThreePartAngleUnit (const String &name, const TranslatedString &translated_name, const TranslatedString &abr_major, const TranslatedString &abr_minor_a, const TranslatedString &abr_minor_b, fltp08 sub_unit_a, fltp08 sub_unit_b, const AngleUnit &angle_unit)
 
 ThreePartAngleUnit (const String &name, const TranslatedString &translated_name, const TranslatedString &abr_major, const TranslatedString &abr_minor_a, const TranslatedString &abr_minor_b, fltp08 sub_unit_a, fltp08 sub_unit_b, fltp08 scale, const Vector< 3, bool > &normalized, Vector< 3, fltp08 > upper_limits, Vector< 3, fltp08 > reflex_point, Vector< 3, bool > reflexes_up)
 
void toString (String &string, const fltp08 &local_space, bool add_comma, uint04 min_decimals, uint04 max_decimals, uint04 min_digits, bool use_abv=true, uint01 direction=X) const override
 
- Public Member Functions inherited from AngleUnit
 AngleUnit (const String &name, const TranslatedString &translated_name, const TranslatedString &abbreviation, fltp08 scale)
 
virtual fltp08 convertFromUnit (const fltp08 &program_space, uint01 direction=X) const override
 
virtual Ray< 3, fltp08convertFromUnit (const Ray< 3, fltp08 > &program_space) const override
 
virtual Vertex< 3, fltp08convertFromUnit (const Vertex< 3, fltp08 > &program_space) const override
 
virtual fltp08 convertToUnit (const fltp08 &program_space, uint01 direction=X) const override
 
virtual Ray< 3, fltp08convertToUnit (const Ray< 3, fltp08 > &program_space) const override
 
virtual Vertex< 3, fltp08convertToUnit (const Vertex< 3, fltp08 > &program_space) const override
 
virtual fltp08 denormalize (fltp08 value, uint01 direction) const
 
virtual fltp08 normalize (fltp08 value, uint01 direction) const
 
virtual ~AngleUnit ()=default
 
- Public Member Functions inherited from ScaledUnit
virtual const TranslatedStringabbreviation (uint01 direction=X) const override
 
virtual fltp08 convertFromString (const String &unit_string, uint01 direction=X) const override
 
virtual String convertToString (const fltp08 &program_space, bool add_comma, uint04 min_decimals, uint04 max_decimals, uint04 min_digits, bool include_abv=true, uint01 direction=X) const override
 
virtual Matrix< fltp08matrix () const override
 
 ScaledUnit (String name, TranslatedString translated_id, TranslatedString abbreviation, fltp08 scale)
 
virtual const UnitsubUnit (uint01) const override
 
- Public Member Functions inherited from Unit
virtual Unitclone () const
 
template<class t_angle_type >
Angle< t_angle_type > convertAngleFromUnit (const fltp08 &unit_space, uint01 direction=X) const
 
template<class t_angle_type >
String convertToString (const Angle< t_angle_type > &program_space, bool add_comma, uint04 min_decimals, uint04 max_decimals, uint04 min_digits, bool include_abv=true, uint01 direction=X) const
 
template<class t_angle_type >
fltp08 convertToUnit (const Angle< t_angle_type > &program_space, uint01 direction=X) const
 
bool operator== (const Unit &other) const
 
virtual String toFormula (const String &unit_string, uint01 direction=X) const
 
String toString (const fltp08 &unit_space, bool add_comma, uint04 min_decimals, uint04 max_decimals, uint04 min_digits, bool include_abv=true, uint01 direction=X) const
 
virtual TranslatedString translatedAxisName (uint04 index) const
 
TranslatedString translatedName () const
 
 Unit (String name, TranslatedString translated_id)
 
virtual ~Unit ()=default
 

Public Attributes

const TranslatedString abr_major
 
const TranslatedString abr_minor_a
 
const TranslatedString abr_minor_b
 
uint04 max_decimal_digits
 
const fltp08 sub_unit_a
 
const fltp08 sub_unit_b
 
- Public Attributes inherited from AngleUnit
Vector< 3, bool > normalized = Vector<3, bool>(false)
 
fltp08 period = 2.0 * Angle<fltp08>::INDEX_PI
 
Vector< 3, fltp08reflex_point = Constant<Vector<3, fltp08>>::Invalid
 
Vector< 3, bool > reflexes_up = Vector<3, bool>(false)
 
Vector< 3, fltp08upper_limits = Vector<3, fltp08>(2.0 * Angle<fltp08>::INDEX_PI)
 
- Public Attributes inherited from ScaledUnit
const TranslatedString core_abbreviation
 
const fltp08 scale
 
- Public Attributes inherited from Unit
TranslatedString axis_abbreviations [4]
 
TranslatedString axis_name_ids [4]
 
const String name
 
const TranslatedString translated_id
 

Additional Inherited Members

- Protected Member Functions inherited from AngleUnit
 AngleUnit (const String &name, const TranslatedString &translated_name, const TranslatedString &abbreviation, fltp08 scale, const Vector< 3, bool > &normalized, const Vector< 3, fltp08 > &upper_limits, const Vector< 3, fltp08 > &reflexes, const Vector< 3, bool > &reflexes_up)
 
- Static Protected Member Functions inherited from Unit
static Buffer< StringOperatorSplit (const String &string)
 

Detailed Description

An angle unit that contains two-parts (Degrees, Minutes, Seconds)


Constructor & Destructor Documentation

◆ ThreePartAngleUnit() [1/2]

ThreePartAngleUnit ( const String & name,
const TranslatedString & translated_name,
const TranslatedString & abr_major,
const TranslatedString & abr_minor_a,
const TranslatedString & abr_minor_b,
fltp08 sub_unit_a,
fltp08 sub_unit_b,
const AngleUnit & angle_unit )

◆ ThreePartAngleUnit() [2/2]

ThreePartAngleUnit ( const String & name,
const TranslatedString & translated_name,
const TranslatedString & abr_major,
const TranslatedString & abr_minor_a,
const TranslatedString & abr_minor_b,
fltp08 sub_unit_a,
fltp08 sub_unit_b,
fltp08 scale,
const Vector< 3, bool > & normalized,
Vector< 3, fltp08 > upper_limits,
Vector< 3, fltp08 > reflex_point,
Vector< 3, bool > reflexes_up )

Member Function Documentation

◆ clone()

virtual Unit * clone ( const String & name,
const TranslatedString & translated_id ) const
nodiscardoverridevirtual

Reimplemented from AngleUnit.

◆ epsilon()

fltp08 epsilon ( fltp08 value,
uint01 direction = X ) const
overridevirtual

Reimplemented from AngleUnit.

◆ fromString()

fltp08 fromString ( const String & unit_string,
uint01 direction = X ) const
overridevirtual

Reimplemented from ScaledUnit.

◆ getNextPreferredSeparator()

String getNextPreferredSeparator ( const String & current_string,
uint01 direction = X ) const
overridevirtual

Reimplemented from Unit.

◆ toString()

void toString ( String & string,
const fltp08 & local_space,
bool add_comma,
uint04 min_decimals,
uint04 max_decimals,
uint04 min_digits,
bool use_abv = true,
uint01 direction = X ) const
overridevirtual

Reimplemented from Unit.

Member Data Documentation

◆ abr_major

const TranslatedString abr_major

◆ abr_minor_a

const TranslatedString abr_minor_a

◆ abr_minor_b

const TranslatedString abr_minor_b

◆ max_decimal_digits

uint04 max_decimal_digits

◆ sub_unit_a

const fltp08 sub_unit_a

◆ sub_unit_b

const fltp08 sub_unit_b

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