|
-
Jan 11th, 2002, 04:19 PM
#1
Thread Starter
Hyperactive Member
Formula for a straight line?
What is the formula for a straight line, in 3D? In 2D it is y=mx+c right.
TIA
-TiPeRa
W#Ć€V€® W¦|| ߀ W¦|| ߀, ÄÑÐ †#€®€ ¦§ ÑÖ†#¦Ñ6 ¥Öµ ©ÄÑ ÐÖ ÄßÖµ† ¦†, §Ö §¦† ßÄ©K, ®€|ÄX ÄÑÐ |€† ¦† #ÄÞÞ€Ñ.
(Whatever will be will be, and there is nothing you can do about it, so sit back, relax and let it happen.)
-
Jan 11th, 2002, 05:41 PM
#2
Hyperactive Member
In 3-D
If you the coordinates of two points through which the line is passing.
let's say (x1,y1,z1) and (x2,y2,z2)
Then Equation of the line is
[x - x1]/[x2 - x1] = [y - y1]/[y2 - y1] = [z - z1]/[z2 - z1]
-
Jan 11th, 2002, 06:04 PM
#3
Hyperactive Member
In 3-D geometry we have what is called as Directional Cosines and Directional Ratios.
The Cosine of angles which these lines make with the x,y and z axis are called directional cosines. Any set of numbers that are propotional to the Directional Cosines are called Directional Ratios.
If we assume a as the angle the line makes with x- axis, b as the angle it makes with y - axis and g as the angle with z - axis. Then
Cos a , Cos b and Cos g are called the directional Cosines of the lines.
It is common to denote Cos a as l , Cos b as m and Cos g as n.
Any set of numbers propotional to these are called directional ratios. For example 2l,2m,2n are directional ratios of the line.
let's say a,b,c are the Directional Ratios of this line. and it passes through (x1,y1,z1) then it's equation is..
[x-x1]/a = [y-y1]/b = [z-z1]/c
-
Jan 11th, 2002, 09:16 PM
#4
Frenzied Member
It seems to me that I remember equations like the following.
X/A + Y/B + Z/C = Constant.
A*X + B*X + C*X = Constant. which is really equivalent to the above.
Anything equivent to one of the above has to be correct.
Live long & prosper.
The Dinosaur from prehistoric era prior to computers.
Eschew obfuscation!
If a billion people believe a foolish idea, it is still a foolish idea!
VB.net 2010 Express
64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.
-
Jan 13th, 2002, 07:47 AM
#5
Or use a 3D vector form:
Points = Starting Point + t * Directional Vector
code for monospacing
in 3D:
Code:
/5\ / 1\
X = |3| + t x |-3|
\7/ \ 6/
top is x, mid is y, bottom is z axis
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|