Vector.DegToRad Method

Overload List

#SignatureDescription
1function DegToRad: TMtxVec;Convert degrees to radians (in-place).
└ indexed: function DegToRad(Index: Integer; Len: Integer): TMtxVec;
2function DegToRad(const X: TMtxVec): TMtxVec;Convert X elements from degrees to radians and store in self.
└ indexed: function DegToRad(const X: TMtxVec; XIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Overload 1: function DegToRad: TMtxVec;

Convert degrees to radians (in-place).

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

Indexed: function DegToRad(Index: Integer; Len: Integer): TMtxVec;

Convert degrees to radians on elements [Index..Index+Len-1] in-place.

#NameTypeDescription
1IndexIntegerstart index
2LenIntegerelement count

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

Overload 2: function DegToRad(const X: TMtxVec): TMtxVec;

Convert X elements from degrees to radians and store in self.

#NameTypeDescription
1XTMtxVec

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

Indexed: function DegToRad(const X: TMtxVec; XIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

Convert X elements [XIndex..XIndex+Len-1] from degrees to radians and store in self elements [Index..Index+Len-1].

#NameTypeDescription
1XTMtxVec
2XIndexIntegerX start index
3IndexIntegerstart index
4LenIntegerelement count

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