Skip to content

Files

Latest commit

e1178db · Jun 7, 2023

History

History
27 lines (18 loc) · 469 Bytes

line-segment.md

File metadata and controls

27 lines (18 loc) · 469 Bytes

Line Segment: Length and Center

Line segment has its:

  • start at ( x 1 , y 1 )
  • end at ( x 2 , y 2 )

Length

| A B | = ( x 2 x 1 ) 2 + ( y 2 y 1 ) 2

it derives from Pythagorean theorem:

C 2 = A 2 + B 2
| A B | 2 = | A C | 2 + | B C | 2
| A B | = | A C | 2 + | B C | 2

Center

S = ( x 1 + x 2 2 , y 1 + y 2 2 )


Line Segment