IFC 4.3.2.20240128 (IFC4X3_ADD2) under development

8.18.6.1 IfcConvertDirectionInto2D

8.18.6.1.1 Semantic definition

The function returns a two-dimensional direction, using the x/y ratios of a two or three-dimensional direction as input.

8.18.6.1.2 Formal representation

FUNCTION IfcConvertDirectionInto2D
    (Direction : IfcDirection)
    : IfcDirection;
 
  LOCAL
    Direction2D : IfcDirection := IfcRepresentationItem() || IfcGeometricRepresentationItem () || IfcDirection([0.,1.]);
  END_LOCAL;
  
  Direction2D.DirectionRatios[1] := Direction.DirectionRatios[1];
  Direction2D.DirectionRatios[2] := Direction.DirectionRatios[2];
  
  RETURN (Direction2D);

END_FUNCTION;

Edit on Github


Is this page difficult to understand? Let us know!

8.18.6.1.3 Changelog

8.18.6.1.3.1 IFC4

  • New resource