SilverScreen Solid Modeler

rel_distance

rel_distance

Previous topic Next topic  

rel_distance

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

double rel_distance ( SS_XYZ *from_pt, SS_XYZ *to_pt )

 

SS_XYZ *from_pt;    // address of 3D point

SS_XYZ *to_pt;      // address of 3D point

 

 




Synopsis

#include "silver.h"

 

The rel_distance function calculates the square of the distance between two points p1 and p2 . rel_distance is useful for comparing the distances between two points without using a costly square root operation.

 

 

Parameters

from_pt and to_pt are addresses of 3D points.

 

 

Return Value

rel_distance returns the calculated value

 

 

See Also

xyz_distance