CosNewValue
Result# = CosNewValue(BasePos, Angle, Radius)
 
Parameters:

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

    Result#
 

      CosNewValue() returns the cosine value of an angle multiplied by a given radius from a base position.




FACTS:


      * CosNewValue is equivalent of BasePos+(Cos(Angle) * Radius)

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



Mini Tutorial:


  
; Drawing a circle with SinNewValue and CosNewValue
  For i = 0 To 360
     
   ; Calc the X/Y coords of circle
     X#=CosNewValue(120,i,110)
     Y#=SinNewValue(120,i,110)
     
   ; plot it
     DotC X#,Y#,RGB(200,200,0)
  Next
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




 
Related Info: Cos | CosH | CosRadius | Sin | SinH | SinNewValue :
 


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