Navigation

IfcSameDirection

Definition from IAI: The function compares two IfcDirection's and ensures that they are the same (with an epsilon precision factor).

HISTORY: New function in Release IFC2x Edition 2

EXPRESS specification:

FUNCTION IfcSameDirection
  (dir1, dir2 : IfcDirection; Epsilon : REAL)
  : LOGICAL ;

  RETURN (IfcSameValue(dir1.DirectionRatios[1],dir2.DirectionRatios[1],Epsilon) AND
          IfcSameValue(dir1.DirectionRatios[2],dir2.DirectionRatios[2],Epsilon) AND
          IfcSameValue(NVL(dir1.DirectionRatios[3],0.0),NVL(dir2.DirectionRatios[3],0.0),Epsilon));
END_FUNCTION;