# Vector between a point and a line segment?

 03 March 2012 daiArna Veteran   portfolio Dai Arna Malta Vector between a point and a line segment? How can I compute the vector value between a point (P) and a line segment (AB) in 3D space? or the coordinate of the point C? share quote
 04 April 2012 uiron neglostyti   portfolio Viktoras Makauskas Vilnius, Lithuania vector AC is a projection of AP onto AB, so AC = (AP dot normalized(AB))*normalized(AB) __________________ Victor ngskintools.com - skinning plugin for Autodesk Maya share quote
 04 April 2012 daiArna Veteran   portfolio Dai Arna Malta Originally Posted by uiron: vector AC is a projection of AP onto AB, so AC = (AP dot normalized(AB))*normalized(AB) Thanks. What are the functions for norm and dot in Maya expression? share quote
 04 April 2012 ThE_JacO Cultist   portfolio CGConnect Member Raffaele Fragapane Performance Technology Supervisor Animal Logic Sydney, Australia Inputting EXACTLY your question into google the very first result is this: http://forums.cgsociety.org/archive.../t-1043434.html Which not only answers your question, but the previous one as well, all together. A useful site with these formulas (which also pops early by just punching your first post into google) http://local.wasp.uwa.edu.au/~pbourke/geometry/ __________________ Come, Join the Cult http://www.cultofrig.com - Rigging from First Principles Last edited by ThE_JacO : 04 April 2012 at 12:16 AM. share quote
 04 April 2012 CGTalk Moderation Expert Thread automatically closed This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum. __________________ CGTalk Policy/Legalities Note that as CGTalk Members, you agree to the terms and conditions of using this website. share quote

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off CGSociety Society of Digital Artists www.cgsociety.org Powered by vBulletinCopyright ©2000 - 2006, Jelsoft Enterprises Ltd.