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
Properties | Description |
---|---|
.(): Scalar | Returns a the value x of this scalar. |
Basic Getter Methods
Properties | Description |
---|---|
.print(): void |
Basic Setter Methods
Properties | Description |
---|---|
.set(Scalar s): this | Copies the value to this Scalar. |
Basic Math Methodsβ
Basic Operations
Properties | Description |
---|---|
+() | |
-() | |
+(Scalar s) | |
-(Scalar s) | |
*(Scalar s) | |
/(Scalar s) |
Basic Calculations
Properties | Description |
---|---|
.sin(Scalar s): Scalar | |
.cos(Scalar s): Scalar | |
.one(Scalar s): Scalar | |
.zero(): Scalar |