battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share
 

 vb.net convert array to xy coodinates

Go down 
AuthorMessage
Admin
Admin
Admin

Posts : 123
Join date : 2011-08-01

vb.net convert array to xy coodinates Empty
PostSubject: vb.net convert array to xy coodinates   vb.net convert array to xy coodinates EmptyFri 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 :TO:
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

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