HansBug's picture
Sync raw source code, with 301 records, on 2024-08-14 05:51:28 CST
5070096 verified
raw
history blame
1.6 kB
standard library package MeasurementRefCalculations {
doc
/*
* This package package defines calculations on MeasurementUnits and CoordinateFrames.
*/
private import ScalarValues::String;
private import ScalarValues::Real;
private import MeasurementReferences::MeasurementUnit;
private import MeasurementReferences::ScalarMeasurementReference;
private import MeasurementReferences::CoordinateFrame;
/* MeasurementUnit operations */
calc def '*' specializes DataFunctions::'*' { in x: MeasurementUnit[1]; in y: MeasurementUnit[1]; return : MeasurementUnit[1]; }
calc def '/' specializes DataFunctions::'/' { in x: MeasurementUnit[1]; in y: MeasurementUnit[1]; return : MeasurementUnit[1]; }
calc def '**' specializes DataFunctions::'**' { in x: MeasurementUnit[1]; in y: Real[1]; return : MeasurementUnit[1]; }
calc def '^' specializes DataFunctions::'^' { in x: MeasurementUnit[1]; in y: Real[1]; return : MeasurementUnit[1]; }
/* CoordinateFrame and MeasurementUnit operations */
calc def 'CoordinateFrame*' specializes DataFunctions::'*' { in x: CoordinateFrame[1]; in y: MeasurementUnit[1]; return : CoordinateFrame[1]; }
calc def 'CoordinateFrame/' specializes DataFunctions::'/' { in x: CoordinateFrame[1]; in y: MeasurementUnit[1]; return : CoordinateFrame[1]; }
calc def ToString specializes BaseFunctions::ToString {
doc
/*
* Returns the Unicode string symbol representing a scalar measurement reference.
*/
in x: ScalarMeasurementReference[1]; return : String[1];
}
}