FUNCTION atan2

(* SCHEMA step_merged_ap_schema; *)
-- IN AP238 STEP-NC/AP242
FUNCTION atan2
      (y : REAL;
       x : REAL ) : REAL;
   LOCAL
      r : REAL;
   END_LOCAL;
      IF (y = 0.0) AND (x = 0.0) THEN
         RETURN (?);
      END_IF;
      r := ATAN(y, x);
      IF x < 0.0 THEN
         IF y < 0.0 THEN
            r := r - 3.14159;
         ELSE
            r := r + 3.14159;
         END_IF;
      END_IF;
      RETURN (r);
END_FUNCTION;

Referenced By

Defintion atan2 is references by the following definitions:
DefinitionType
 enclose_cregion_in_pregion FUNCTION
 enclose_pregion_in_pregion FUNCTION
 member_of FUNCTION
 simplify_function_application FUNCTION


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2024-09-06T14:00:33-04:00