# Vector Intersection to Pseudo

**URL:** <https://forum.kirupa.com/t/vector-intersection-to-pseudo/293166>\
**Category:** flash\
**Created:** [July 24, 2009, 3:38am UTC](https://forum.kirupa.com/t/vector-intersection-to-pseudo/293166 "2009-07-24T03:38:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kei10](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kei10](https://forum.kirupa.com/u/kei10)\
**Post date:** [July 24, 2009, 3:38am UTC](https://forum.kirupa.com/t/vector-intersection-to-pseudo/293166/1 "2009-07-24T03:38:27Z")

</div>

Hello and i hope i posted on correct forum title and I need the answer as quick  
as possible because I’m having a competition of some sort of… :!:

In Flash Action Script Language Form the code of Vector Intersection will be in this way:

```auto
v3={vx:v2.p0.x-v1.p0.x, vy:v2.p0.y-v1.p0.y};
var t=perP(v3, v2)/perP(v1, v2);
ip={};
ip.x=v1.p0.x+v1.vx*t;
ip.y=v1.p0.y+v1.vy*t;
function perP(va, vb){
	pp = va.vx*vb.vy - va.vy*vb.vx;
	return pp;
}

```

The following code can be found here: [URL=“[http://www.tonypa.pri.ee/vectors/tut05.html](http://www.tonypa.pri.ee/vectors/tut05.html)”][http://www.tonypa.pri.ee/vectors/tut05.html](http://www.tonypa.pri.ee/vectors/tut05.html)

But in normal Pseudo or any simpler form of script can someone translate it for me?  
Assume in this example:

Programming Language:

```auto

x += y

```

To

```auto

x = x + y

```

Anyway, I’m pretty Sick & Suck in flash with tha vector Intersection script given above.  
I worked for a day still can’t find out how to work it in normal form.  
I use “Game Maker” by Markover Mars as my main platform language.  
And i need to work that thing in game maker (GML) language.

Thanks,  
Kei-Kun.
