VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



To display any item at positions around a circle

by Drahcir (1 Submission)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 2nd October 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

To display any item at positions around a circle

API Declarations


Dim originX as single,originY as single
Dim angle as single, radius as single
Dim x as single,y as single

Rate To display any item at positions around a circle



  angle = angle + pi / 180 '1 degree rotation per interval
  If angle > 2* pi then angle = angle - 2 * pi
  x = radius * cos(angle) + originX
  y = radius * sin(angle) + originY
  object.left = x
  object.top = y
End Sub
  

Download this snippet    Add to My Saved Code

To display any item at positions around a circle Comments

No comments have been posted about To display any item at positions around a circle. Why not be the first to post a comment about To display any item at positions around a circle.

Post your comment

Subject:
Message:
0/1000 characters