Vector product in Point3.cc
pmarguinaud opened this issue · comments
I would like to add a vector product method to Point3.cc :
Something like :
static Point3 cross (const Point3 & p1, const Point3 & p2)
{
return Point3
(
p1[YY] * p2[ZZ] - p1[ZZ] * p2[YY],
p1[ZZ] * p2[XX] - p1[XX] * p2[ZZ],
p1[XX] * p2[YY] - p1[YY] * p2[XX]
);
}
May I submit a branch on github ?
Yes please submit pull request on GitHub. Very much welcome.