News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Formula for a Pitched Line

Started by Lar, February 14, 2007, 12:04:36 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Lar

Anybody know the formula for a 3 point pitched line.

For example, a 6/12 pitch that starts at 0,0 and extends, say 10 feet so that:

point1 = 0, 0
point2 = 5, 2.5
point3 = 10, 0

I know how to do this one half at a time...

y=1/2x*(6/12), then y= -1/2x*(6/12), but can it be done in one formula. I suspect trig would be involved somehow, or squareing.

Thanks in advance,
Lar


prl

Quote from: Lar on February 14, 2007, 12:04:36 AM
but can it be done in one formula?

No.  A line is defined by two points mathematically.  A polyline (more than two points) can be programmatically defined using conditional programming statements (if statements), if point 1 then do this, if point 2 then do that, if point 3 then this, etc.

Lar