03-18-2006, 12:08 PM
yeah, attract them until you have a solid mass and then repel, you'll see a perfect octagon. I don't know why that is, but i think its beautiful...
anyways, could someone please tell me what my code is doing? =) i mean of course i know the basics of how it worked, but i don't know the math "terms". for example what is this:
i know theres probably some term besides "midpoint" :-? :-?
anyways, could someone please tell me what my code is doing? =) i mean of course i know the basics of how it worked, but i don't know the math "terms". for example what is this:
Code:
Function matrix2_MidPoint( m As matrix2_Binary ) As matrix2
Dim As matrix2 ret
matrix2_Init( Varptr( ret ), m.x.id )
Select Case ret.id
Case EVAR_i
ret.x.i = ( m.x.x.i + ( m.y.x.i * .5 ) )
ret.y.i = ( m.x.y.i + ( m.y.y.i * .5 ) )
Case EVAR_d
ret.x.d = ( m.x.x.d + ( m.y.x.d * .5 ) )
ret.y.d = ( m.x.y.d + ( m.y.y.d * .5 ) )
End Select
Return ret
End Function
i know theres probably some term besides "midpoint" :-? :-?