Beispiel #1
0
int apeq(const plane &pl1, const plane &pl2, vfloat prec)
{
  pvecerror("int apeq(const plane &pl1, const plane &pl2, vfloat prec)");
  if( check_par( pl1.dir, pl2.dir, prec) == 0 ) return 0;
  if( apeq( pl1.piv , pl2.piv, prec) == 1) return 1;
  if( pl1.check_point_in(pl2.piv, prec) == 1 ) return 1;
  else return 0;
}
Beispiel #2
0
int operator==(const plane &pl1, const plane &pl2)
{
  pvecerror("int operator==(const plane &pl1, const plane &pl2)");

  if( !(pl1.dir == pl2.dir || pl1.dir == -pl2.dir) ) return 0;
  if( pl1.piv == pl2.piv ) return 1;
  if( pl1.check_point_in(pl2.piv,0) == 1 ) return 1;
  else return 0;
}