Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cha0s wanted...
#9
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:


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" :-? :-?
Reply


Messages In This Thread
Cha0s wanted... - by Josiah Tobin - 03-17-2006, 06:09 AM
Cha0s wanted... - by SSC - 03-17-2006, 06:30 AM
Cha0s wanted... - by phycowelder - 03-17-2006, 07:05 AM
Cha0s wanted... - by Anonymous - 03-17-2006, 12:03 PM
Cha0s wanted... - by Jocke The Beast - 03-17-2006, 02:45 PM
Cha0s wanted... - by relsoft - 03-18-2006, 06:19 AM
Cha0s wanted... - by Dio - 03-18-2006, 09:25 AM
Cha0s wanted... - by barok - 03-18-2006, 11:50 AM
Cha0s wanted... - by Anonymous - 03-18-2006, 12:08 PM
Cha0s wanted... - by Torahteen - 03-19-2006, 08:06 AM
Cha0s wanted... - by Agamemnus - 03-29-2006, 05:36 AM
Cha0s wanted... - by Anonymous - 03-29-2006, 06:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)