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

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

    Result#
 

      SinNewValue() returns the sine value of an angle multiplied by a given radius from a baseposition.




FACTS:


      * SinNewValue is the equivalent of BasePos+(Sin(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 | CosNewValue | Sin | SinRadius | WrapAngle :
 


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