TSparseMtx.RadToDeg Method

Overload List

#SignatureDescription
1function RadToDeg: TMtxVec; overload;RadToDeg converts radians to degrees.
└ indexed: function RadToDeg(Index, Len: integer): TMtxVec; overload;
2function RadToDeg(const X: TMtxVec): TMtxVec; overload;RadToDeg converts the radians to degrees for all X object elements.
└ indexed: function RadToDeg(const X: TMtxVec; XIndex, Index, Len: integer): TMtxVec; overload;

Overload 1: function RadToDeg: TMtxVec; overload;

RadToDeg converts radians to degrees.

Result: stored in self (calling object), returns self for chaining

Returns: RadToDeg converts radians to degrees for all calling object elements in-place. The following transformation is used: Degrees = Radians/(PI*180)

Indexed: function RadToDeg(Index, Len: integer): TMtxVec; overload;

RadToDeg converts the radians for calling object elements [Index]..[Index+Len-1] in-place to degrees.

#NameTypeDescription
1Indexintegerstart index
2Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

An exception is raised, if array borders are overrun or underrun.

Overload 2: function RadToDeg(const X: TMtxVec): TMtxVec; overload;

RadToDeg converts the radians to degrees for all X object elements.

#NameTypeDescription
1XTMtxVecsource TVec or TMtx

Result: stored in self (calling object), returns self for chaining

Remarks:

Stores the results in the calling object. Size and TMtxVec.Complex properties of calling object are adjusted automatically.

Indexed: function RadToDeg(const X: TMtxVec; XIndex, Index, Len: integer): TMtxVec; overload;

RadToDeg converts degrees to radians for all X object elements [XIndex]..[XIndex+Len-1].

#NameTypeDescription
1XTMtxVecsource TVec or TMtx
2XIndexintegerX start index
3Indexintegerstart index
4Lenintegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

Stores the results in the calling object elements [Index]..[Index+Len-1]. An exception is raised, if array borders are overrun or underrun.