# Calculate coordinates for a prism

**URL:** <https://forum.kirupa.com/t/calculate-coordinates-for-a-prism/252660>\
**Category:** flash\
**Created:** [February 22, 2008, 6:11am UTC](https://forum.kirupa.com/t/calculate-coordinates-for-a-prism/252660 "2008-02-22T06:11:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaji](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@shaji](https://forum.kirupa.com/u/shaji)\
**Post date:** [February 22, 2008, 6:11am UTC](https://forum.kirupa.com/t/calculate-coordinates-for-a-prism/252660/1 "2008-02-22T06:11:05Z")

</div>

Hi All,  
I am not sure whether this is correct place for my question, I didn’t find an appropriate location in the forum. Its more of maths than actionscript, I assume.

I am working on a simulation showing refraction of light through a prism. Its just a single ray, coordinate from which the light ray enters prism is constant whereas the coordinate from which light comes out changes as per angle of light entering the prism. I am able to simulate almost everything except the shifting of coordinates from where light ray come out of prism.

Maths really scares me, but then I have no choice. Please give me a clue to find the coordinates or a solution would be real good.
