DegreeToRad
Radian# = DegreeToRad(Angle#)
 
Parameters:

    Angle# = Angle in degree
Returns:

    Radian# = Angle in degree
 

      The DegreeToRad converts a angle in degrees to an angle in radians.




FACTS:


      * PlayBASIC math functions primarily expect angles to be in degrees.




Mini Tutorial:


  
; Convert an angle of 90 radian to degrees
  Print DegreeToRad(90)
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  



This example would output.

  
  1.570796
  

 
Related Info: Cos | GetAngle2D | RadToDegree | Sin | Tan :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com