battle programminga forum for elite programmerswith extreme will powerto sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share | 
 

 vb.net convert array to xy coodinates

Go down 
AuthorMessage
Admin
Admin
Admin

Posts : 120
Join date : 2011-08-01

PostSubject: vb.net convert array to xy coodinates   Fri Dec 08, 2017 2:18 pm

0 to 8 array to 3 by 3 xy plain :

Code:
Private Sub setXY(ByVal n As Integer)
            y = (n + 3) \ 3
            x = (n Mod 3) + 1
        End Sub
tongue

_________________
kurayami no kagi  _____    
Back to top Go down
View user profile http://yotamarker.forumotion.com
 
vb.net convert array to xy coodinates
Back to top 
Page 1 of 1
 Similar topics
-
» How to implement logic: if element exist in the list (array), Se, Selenise

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: