IfcConvertDirectionInto2D

BACnet MVD

#### IfcConvertDirectionInto2D

Natural language names

| Convert Direction Into2 D

##### Semantic definitions at the function

Function Definition

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

> NOTE This functions is currently solely used to determine the TrueNorth direction in IfcGeometricRepresentationSubContext.

> HISTORY New function in IFC2x4.

##### Formal representations

EXPRESS Specification
`

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;

`

Link to this page