RotateItems example
Example for RotateItems method
Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
cAvax1.StartAvax()
Call cAvax1.Add_Line(0, 0, 0, 10, 10, 0)
Call cAvax1.Add_Line(0, 10, 0, 10, 10, 0)
End Sub
Private Sub Form1_FormClosed(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
cAvax1.EndAvax()
End Sub
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
Dim [Handles]() As Integer
Dim RotX As Single
Dim RotY As Single
Dim theta As Single
Dim fRotateStay As Boolean
Dim Answer As Boolean
If CAvax1.GetAllHandlesArr([Handles]) > 0 Then
RotX = 10
RotY = 10
theta = 60
fRotateStay = True
Answer = CAvax1.RotateItems([Handles], RotX, RotY, theta, fRotateStay)
End If
End Sub