Example #1
0
 //  see http://slidegur.com/doc/1106443/plucker-coordinate   slide 46
 // "inside" if U1.V2 + V1.U2 > 0
 static public bool checkCcw(PlueckerCoordinate c1, PlueckerCoordinate c2)
 {
     return(SpatialVectorDouble.dot(c1.u, c2.v) + SpatialVectorDouble.dot(c1.v, c2.u) > (double)0);
 }
Example #2
0
 // could be optimized but not wirth the time to optimize
 public static PlueckerCoordinate createByNegativeVector(SpatialVectorDouble p, SpatialVectorDouble dir)
 {
     return(PlueckerCoordinate.createByPandQ(p, p - dir));
 }