Float njDistanceP2P( p1, p2 )
const NJS_POINT3 *p1
const NJS_POINT3 *p2
p1 1つ目の点データを格納する構造体のポインタ p2 2つ目の点データを格納する構造体のポインタ
2点間の距離
2点間の距離を求めます。
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