C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Complex::Set

Defined in:  C4Complex.h
Sets both components of a complex number.
Prototype

Complex& Set(float r, float s = 0.0F);

Parameters
r The new real component.
s The new imaginary component.
Description
The Set function sets the real and imaginary components of a complex number to the values given by the r and s parameters, respectively.

The return value is a reference to the complex number object.