You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
328 B
17 lines
328 B
|
1 day ago
|
#include "implicit_point.h"
|
||
|
|
|
||
|
|
int main(int argc, char *argv[])
|
||
|
|
{
|
||
|
|
initFPU();
|
||
|
|
|
||
|
|
explicitPoint2D a(1, 1), b(3, 3), c(2, 1), d(1, 2);
|
||
|
|
implicitPoint2D_SSI i(a, b, c, d);
|
||
|
|
|
||
|
|
if (genericPoint::orient2D(a, i, b) == 0)
|
||
|
|
std::cout << "Collinear\n";
|
||
|
|
else
|
||
|
|
std::cout << "Not collinear\n";
|
||
|
|
|
||
|
|
return 0;
|
||
|
|
}
|