CosRadius
Result# = CosRadius(Angle, Radius)
 
Parameters:

    Angle = The angle (in degrees)
    Radius = The Radius
Returns:

    Result#
 

      CosRadius() returns the cosine value of an angle multiplied by a given radius. It's the equivalent of the following formula Cos(Angle#)*Radius

      Check out the Cos or Sin for some ideas on how you might use them.




Mini Tutorial:


  
; Drawing a circle with SinRadius and CosRadius
  For i = 0 To 360
     
   ; Calc the X/Y coords on this point on the circle
     x#=CosRadius(i,110)+120
     y#=SinRadius(i,110)+120
     
   ; draw it
     DotC X#,Y#,RGB(200,200,0)
     
  Next i
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




 
Related Info: Cos | CosH | CosNewValue | Sin | SinH | SinNewValue | SinRadius :
 


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