src/cdtGen.cpp
/*! \fn float CDTGenerator::dotProduct(DartHandle segment1Handle, DartHandle segment2Handle)
    \brief Computes dot product of vectors represented by input segments.

    \param [in] segment1Handle DartHandle for the first segment
    \param [in] segment2Handle DartHandle for the second segment
*/
\fn float CDTGenerator::dotProduct(DartHandle segment1Handle, DartHandle segment2Handle)
\brief Computes dot product of vectors represented by input segments.

\param [in] segment1Handle DartHandle for the first segment
\param [in] segment2Handle DartHandle for the second segment
\ fn float CDTGenerator :: dotProduct ( DartHandle segment1Handle DartHandle segment2Handle ) \ brief Computes dot product of vectors represented by input segments . \ param [ in ] segment1Handle DartHandle for the first segment \ param [ in ] segment2Handle DartHandle for the second segment
float CDTGenerator::dotProduct(DartHandle& segment1Handle, DartHandle& segment2Handle)
{
	CGALPoint segment1Vertex[2];
	CGALPoint segment2Vertex[2];
	segment1Vertex[0] = plc.point(segment1Handle);
	segment1Vertex[1] = plc.point(plc.beta(segment1Handle, 1));
	segment2Vertex[0] = plc.point(segment2Handle);
	segment2Vertex[1] = plc.point(plc.beta(segment2Handle, 1));
	Vector_3<K> vector1(segment1Vertex[0], segment1Vertex[1]);
	Vector_3<K> vector2(segment2Vertex[0], segment2Vertex[1]);
	float v1Dotv2 = vector1 * vector2;
	cout << "Vector1: " << vector1 << endl;
	cout << "Vector2: " << vector2 << endl;
	cout << "Dot product: " << v1Dotv2 << endl;
	return v1Dotv2;
}
float CDTGenerator :: dotProduct ( DartHandle & segment1Handle , DartHandle & segment2Handle ) { CGALPoint segment1Vertex [ 2 ] ; CGALPoint segment2Vertex [ 2 ] ; segment1Vertex [ 0 ] = plc . point ( segment1Handle ) ; segment1Vertex [ 1 ] = plc . point ( plc . beta ( segment1Handle , 1 ) ) ; segment2Vertex [ 0 ] = plc . point ( segment2Handle ) ; segment2Vertex [ 1 ] = plc . point ( plc . beta ( segment2Handle , 1 ) ) ; Vector_3 < K > vector1 ( segment1Vertex [ 0 ] , segment1Vertex [ 1 ] ) ; Vector_3 < K > vector2 ( segment2Vertex [ 0 ] , segment2Vertex [ 1 ] ) ; float v1Dotv2 = vector1 * vector2 ; cout << " " << vector1 << endl ; cout << " " << vector2 << endl ; cout << " " << v1Dotv2 << endl ; return v1Dotv2 ; }
\fn float CDTGenerator::dotProduct(DartHandle segment1Handle, DartHandle segment2Handle)
\brief Computes dot product of vectors represented by input segments.
\ fn float CDTGenerator :: dotProduct ( DartHandle segment1Handle DartHandle segment2Handle ) \ brief Computes dot product of vectors represented by input segments .