Struct CadCalcValue
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
A value of the geometry calculator: a whole number, a real number or a vector (a point) of three coordinates, as AutoCAD's CAL keeps them.
public readonly struct CadCalcValue
- Inherited Members
Properties
- IsInteger
Gets whether the value is a whole number, as 1+2*3 is.
- IsVector
Gets whether the value is a vector.
- Number
Gets the number; the X of a vector.
- Point
Gets the vector as a point; a number gives (number, 0, 0).
- X
Gets the number, or the X of a vector.
- Y
Gets the Y of a vector; nought for a number.
- Z
Gets the Z of a vector; nought for a number.
Methods
- Integer(long)
Makes a whole number.
- Real(double)
Makes a real number.
- ToInput()
Writes the value as QuickCalc puts it into its input, which CAL reads back: 7, 1.41421, [1,2,0].
- ToString()
Writes the value as AutoCAD 2021's CAL writes it on the command line, whatever the drawing's units: a whole number as 7, a real number to nine significant digits (6, 0.333333333, 53.1301024, 1e+10), a vector as 120,80,0.
- ToTyped()
Writes the value as the text AutoCAD types into the prompt a transparent CAL answers: the number, or x,y,z, to every digit it holds.
- Vector(double, double, double)
Makes a vector.