distance

taichi_glsl.vector.distance(a, b)

Calculate the distance between two points.

Parameters
  • a – Specifies the first of two points.

  • b – Specifies the second of two points.

Returns

The return value is calculated as length(a - b).

See also

length(), normalize(), dot().