Directed Line Segments Formula:
From: | To: |
A directed line segment is a line segment between two points with a specific direction (from point A to point B). The ratio of division determines where a point P divides the segment AB internally.
The calculator uses the section formula and angle calculation:
Where:
Details: Calculating ratios of directed line segments is fundamental in geometry, physics, and computer graphics for interpolation, vector calculations, and position determination.
Tips: Enter coordinates of points A and B, and the ratio m:n. The calculator will determine the dividing point P and the angle of line AB.
Q1: What does a ratio m:n mean?
A: It means point P divides AB such that AP/PB = m/n. For m=n=1, P is the midpoint.
Q2: How is the angle calculated?
A: The angle is calculated between the line AB and the positive x-axis, measured counterclockwise.
Q3: What if the ratio is negative?
A: Negative ratios indicate external division (point P lies outside AB). This calculator handles only positive ratios.
Q4: Can I use 3D coordinates?
A: This calculator works only for 2D coordinates. For 3D, you would need to add z-coordinates.
Q5: What's the range of the angle?
A: The angle ranges from -180° to 180°, with positive x-axis as 0°.