소스 검색

* Add constants cPI and friends, for delphi compatibility

Michaël Van Canneyt 1 년 전
부모
커밋
d6cf3c98d0
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      rtl/objpas/types.pp

+ 7 - 0
rtl/objpas/types.pp

@@ -531,6 +531,13 @@ type
   end;
   end;
 {$endif}
 {$endif}
 
 
+Const
+  cPI: Single = 3.141592654;
+  cPIdiv180: Single = 0.017453292;
+  cPIdiv2: Single = 1.570796326;
+  cPIdiv4: Single = 0.785398163;
+
+
 implementation
 implementation
 
 
 {$IFDEF FPC_DOTTEDUNITS}
 {$IFDEF FPC_DOTTEDUNITS}