Locations of visitors to this page
    Sprouting Synapses       Minimize  

             
            Minimize  
Author: SkySigal Created: 3/7/2008 2:57 PM
.NET:C#-Trig

By SkySigal on 3/9/2008 10:31 PM

It's cute, really -- a couple of small bits of trig well placed, and you get a nice lazy Susan.

Read More »

By SkySigal on 3/8/2008 10:56 PM

If you are looking for a long and good article on how to use Vectors for games:

http://www.tonypa.pri.ee/vectors/tut06.html

(Its in flash, but so what?)

powered by metaPost

By SkySigal on 3/8/2008 10:23 PM

 

When I was working on the XAct.Win.Controls.GraphRenderer I had to work with Vectors to emulate hit testing on NET CE.

Since I'm back in to needing vectors for work I'm doing on the acceleration of the Carousel, I went and looked up what I wrote...

In case this is of use for anyone else (wish it were a bit more documented).

Read More »

By SkySigal on 3/7/2008 3:51 PM

The object's velocity is its existing V, plus the effect of A, over a time interval

V2 = V1 + (a * t);

Read More »

By SkySigal on 3/7/2008 3:14 PM

Given a control of 300x300, containing a circle (of r=150):

Read More »

By SkySigal on 3/7/2008 3:06 PM

Again, pretty simple (until you need it 'yesterday'):

double angle = Math.Atan2((p2.Y - p1.Y), (p2.X - P1.X));
powered by metaPost

By SkySigal on 3/7/2008 3:01 PM

This should not need saying:

Read More »


             
Copyright 2007 by Sky Sigal