help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Types][Classes][Procedures and functions] Reference for unit 'matrix' (#rtl)

Tvector3_extended.length

Calculates the length of the vector.

Declaration

Source position: matrix.pp line 110

function Tvector3_extended.length: extended;

Description

Calculate the length of the vector: length=sqrt(data[0]**2+data[1]**2+data[2]**2). Try to use squared_length if you are able to, as it is faster.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505