Skip to main content

VDIST2

Game.Vdist2Hash0x69AE0805
Usage
local result = Game.Vdist2(x0, y0, z0, x1, y1, z1)

Square of distance between two points (much less costly to compute).

Parameters

  • x0numberfloat
  • y0numberfloat
  • z0numberfloat
  • x1numberfloat
  • y1numberfloat
  • z1numberfloat

Returns

  • resultnumberreturn value
Original declaration
// 0x69AE0805
float VDIST2(float x0, float y0, float z0, float x1, float y1, float z1);