Skip to main content

Scalar

Code Example​

::STAR::Scalar a( 1 );

::STAR::Scalar b(); // will be initialised to( 0 )

::STAR::Scalar c = a + b;

Constructor​

Scalar scalar(double s)

Methods​

Basic Properties Methods​

Basic Operations

PropertiesDescription
.(): ScalarReturns a the value x of this scalar.

Basic Getter Methods

PropertiesDescription
.print(): void

Basic Setter Methods

PropertiesDescription
.set(Scalar s): thisCopies the value to this Scalar.

Basic Math Methods​

Basic Operations

PropertiesDescription
+()
-()
+(Scalar s)
-(Scalar s)
*(Scalar s)
/(Scalar s)

Basic Calculations

PropertiesDescription
.sin(Scalar s): Scalar
.cos(Scalar s): Scalar
.one(Scalar s): Scalar
.zero(): Scalar