Sign in Join
FPDoc Onlineexperiment

Tvector3_double.length function

Member of Tvector3_doubleIn unit matrix

Calculates the length of the vector.

Declaration

pascal
function &length: Double

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.