src/cplib/geometry/distance

  Source   Edit

Procs

proc distance(p1, p2: Point[SomeFloat]): float
点 p1, p2 のユークリッド距離   Source   Edit
proc distance(p: Point[SomeFloat]; l: Line[SomeFloat]): float
点 p と直線 l のユークリッド距離   Source   Edit
proc distance(p: Point[SomeFloat]; s: Segment[SomeFloat]): float
点 p と線分 s のユークリッド距離   Source   Edit
proc distance(s1, s2: Segment[SomeFloat]): float
線分 s1, s2 のユークリッド距離   Source   Edit
proc manhattan[T](p1, p2: Point[T]): T
2点 p1, p2 のマンハッタン距離   Source   Edit
proc manhattan[T](p: Point[T]): T
p のマンハッタンノルム   Source   Edit
proc norm[T](p1, p2: Point[T]): T
点 p1, p2 のユークリッド距離の2乗   Source   Edit
proc norm[T](p: Point[T]; l: Line[T]): T
点 p と直線 l のユークリッド距離の2乗   Source   Edit
proc norm[T](p: Point[T]; s: Segment[T]): T
点 p と線分 s のユークリッド距離の2乗   Source   Edit
proc norm[T](s1, s2: Segment[T]): T
線分 s1, s2 のユークリッド距離の2乗   Source   Edit