How do you make a line perpendicular to a line mathamaticly?

Started by
12 comments, last by WhatEver 21 years, 3 months ago

  Do what in the forums? The source code thing? You can use the source tag.Edit my message to see.  
Advertisement
quote:Original post by joanusdmentia
yeah, |B|^2 is |B| squared is B.B

I'm just used to seeing the formula written down in text books that use |B|^2. Although they use superscript font, btw how do you do that in the forums?


HTML is supported so you can do superscript as well as subscript

Use <sub> to start a subscript block and </sub> to end a subscript block, and likewise <sup> to start a superscript block and </sup> to end it.

So |B|2.

--
Simon O'Connor
Creative Asylum Ltd
www.creative-asylum.com

[edit - pesky tags - missed a closing tag ]

[edited by - s1ca on January 19, 2003 1:33:36 PM]

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site



of course!!!!

thnx S1CA
"Voilà! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate. This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valorous visitation of a bygone vexation stands vivified, and has vowed to vanquish these venal and virulent vermin vanguarding vice and vouchsafing the violently vicious and voracious violation of volition. The only verdict is vengeance; a vendetta held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the virtuous. Verily, this vichyssoise of verbiage veers most verbose, so let me simply add that it's my very good honor to meet you and you may call me V.".....V
Should be fairly easy:

given a line AB and a point P:

1)create Vector AB, say AB =
2)create a Vector perpendicular to AB the size of AB called AB* = OR <-y, x>.
3) Now make Vector PA
4) Project PA onto the newly created AB* using the dot product
5) to get D, divide that product by the length of AB

*done*
edit: oops you're working with 3D, so you can't use this method,here's another:
1)get a point on line AB, any point call it C
2)make a vector PC
3)project PC onto AB
4)you now have the distance from C to a point X ON AB that is right under P.
5)add this distance over a normalized vector of AB on to C to create X.
6)Make CX, the length of this vector is what you want.

I think that works

[edited by - Wicked Ewok on January 19, 2003 11:17:33 PM]
-=~''^''~=-.,_Wicked_,.-=~''^''~=-

This topic is closed to new replies.

Advertisement