IfcOrthogonalComplement

Natural language names
Orthogonal Complement
Semantic definitions at the function
Function Definition

NOTE  Definition according to ISO/CD 10303-42:1992
This function returns a direction which is the orthogonal complement of the input direction. The input direction must be a two-dimensional direction and the result is a vector of the same type and perpendicular to the input vector.
NOTE  Function adapted from orthogonal_complement defined in ISO 10303-42.
HISTORY  New function in IFC1.5

Formal representations
EXPRESS Specification

FUNCTION IfcOrthogonalComplement
  (Vec : IfcDirection)
    : IfcDirection;
LOCAL
  Result : IfcDirection ;
END_LOCAL;
  IF NOT EXISTS (Vec) OR (Vec.Dim <> 2) THEN
    RETURN(?);
  ELSE
    Result := IfcRepresentationItem() || IfcGeometricRepresentationItem () || IfcDirection([-Vec.DirectionRatios[2], Vec.DirectionRatios[1]]);
    RETURN(Result);
  END_IF;
END_FUNCTION;

Link to this page  Link to this page