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;