njDistanceP2P | Japanese
    <-|INDEX|->
Returns the distance between two points.

### FORMAT

      #include <Ninja.h>

      Float njDistanceP2P(*p1, *p2)
      NJS_POINT3 *p1
      NJS_POINT3 *p2

### PARAMETERS

NJS_POINT3 *p1
  point data 1
NJS_POINT3 *p2
  point data 2

### RETURN VALUE

  Distance between the two points.

### FUNCTION

- Returns the distance between two points.

### EXAMPLE

      NJS_POINT3 p1, p2;

      p1.x = 100.f;
      p1.y = 100.f;
      p1.z = 100.f;
      p2.x = -100.f;
      p2.y = -100.f;
      p2.z = -100.f;

      njDistanceP2P(&p1, &p2);

      % Result %
      346.410156

### NOTES

### RELATED TOPICS

  NJS_POINT3

njDistanceP2P |
    <-|INDEX|->