Skip to content

function getDistance3d (shared-side)

Available since version: 0.3.0

This function will get the 3d distance between two points.

Declaration

float getDistance3d(float x1, float y1, float z1, float x2, float y2, float z2)

Parameters

  • float x1: The position on X axis of the first point.
  • float y1: The position on Y axis of the first point.
  • float z1: The position on Z axis of the first point.
  • float x2: The position on X axis of the second point.
  • float y2: The position on Y axis of the second point.
  • float z2: The position on Z axis of the second point.

Returns float

The distance between the two points.