Geometry helpers ------

geometry_intersection_two_segments(seg1, seg2)

geometry_diff_two_vectors(x1, y1, x2, y2)

geometry_diff_two_segments(seg1, seg2)

Arguments

seg1, seg2

segment definitions as 2 rows (start, end) x 2 cols

x1, y1

parameters (x and y diff) of vector 1

x2, y2

parameters (x and y diff) of vector 2

Source

Joseph O'Rourke : compilation of graphics algorithm

Functions

  • geometry_intersection_two_segments: calculate intersection between two segments

  • geometry_diff_two_vectors: calculate scale and rotation differences between two vectors

  • geometry_diff_two_segments: calculate scale and rotation differences between two segments

See also

Other geometry: euclidean