Leng

Declaration: TVector.Leng: double;
The property Leng can be used to both calculate the length of a vector and to set the length of a vector to a given value. Setting the length of a zero-length vector is ignored. Note, that setting the length of a vector to 1.0 is equal to normalizing this vector.

Example: The statement L := Vec1.Leng; calculates the length of the vector Vec1 and assigns it to the variable L.