# Line in 3d space

**URL:** <https://forum.kirupa.com/t/line-in-3d-space/198038>\
**Category:** Uncategorized\
**Created:** [August 21, 2006, 11:25pm UTC](https://forum.kirupa.com/t/line-in-3d-space/198038 "2006-08-21T23:25:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sinus1](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@Sinus1](https://forum.kirupa.com/u/Sinus1)\
**Post date:** [August 21, 2006, 11:25pm UTC](https://forum.kirupa.com/t/line-in-3d-space/198038/1 "2006-08-21T23:25:59Z")

</div>

i want to do draw a simple line betwen 2 points in space. let’s say that one is (200, 300, 0) - this one has no depth, and the other one is (400, 400, 300) - this one is somewhere in the distance. i’ve searched the forum and found nothing, so if someone has something please tell!!  
code with comments would be very helpful

thanks
