23 #define VERDICT_EXPORTS
69 side1.
set( coordinates[1][0] - coordinates[0][0], coordinates[1][1] - coordinates[0][1],
70 coordinates[1][2] - coordinates[0][2] );
72 side2.
set( coordinates[3][0] - coordinates[0][0], coordinates[3][1] - coordinates[0][1],
73 coordinates[3][2] - coordinates[0][2] );
75 side3.
set( coordinates[4][0] - coordinates[0][0], coordinates[4][1] - coordinates[0][1],
76 coordinates[4][2] - coordinates[0][2] );
79 volume = ( side3 % ( side1 * side2 ) ) / 6.0;
81 side1.
set( coordinates[3][0] - coordinates[2][0], coordinates[3][1] - coordinates[2][1],
82 coordinates[3][2] - coordinates[2][2] );
84 side2.
set( coordinates[1][0] - coordinates[2][0], coordinates[1][1] - coordinates[2][1],
85 coordinates[1][2] - coordinates[2][2] );
87 side3.
set( coordinates[4][0] - coordinates[2][0], coordinates[4][1] - coordinates[2][1],
88 coordinates[4][2] - coordinates[2][2] );
91 volume += ( side3 % ( side1 * side2 ) ) / 6.0;
93 return (
double)volume;
97 double coordinates[][3],
98 unsigned int metrics_request_flag,