Newswire
Features
Connection
Job Search
Directories

by Jeff Lander
Gamasutra
May, 23, 2000

This article originally appeared in the
November 1999 issue of:

Printer Friendly Version
   
Discuss this Article

Features

The Blobs Go Marching Two by Two

Listing 2. Finding the Intersection Point.


void FindIntersection( tVector *a, tVector *b,
float aVal, float bVal,
float thresh, tVector *result)
{
/// Local Variables ////////////////////////////////////
    tVector diff;
    float ratio;
////////////////////////////////////////////////////////
    VectorSubtract( a, b, &diff);
    ratio = (thresh - aVal) / (bVal - aVal);
    VectorMultiply( &diff, ratio);
    VectorSubtract(a,&diff,result);
    if (aVal > bVal)
}

________________________________________________________

Back to Article

Home   JoinHelpContact UsShop
 


Home | Join | Help | Contact Us | Shop | Newswire | Site Map
Write for Us | Features | Connection | Job Search | Directories


Copyright © 1999-2000 Miller Freeman Inc. All rights reserved.
Privacy Policy

Miller Freeman Game Group: GDC, GDMag, IGF Independent Games Festival Game Developer Magazine Game Developers Conference