Cartesian
MolecularGraph.Geometry.distance — Methoddistance(u::Point, v::Point) -> Float64
distance(s::Segment) -> Float64
distance(coords::AbstractMatrix{T}) where {T<:Real} -> Float64Return distance between two endpoints.
MolecularGraph.Geometry.isclockwise — Methodisclockwise(vertices::AbstractMatrix{Float64}) -> Union{Bool,Nothing}Return true/false if given vertices of a polygon in 2D space are placed clockwise/anticlockwise. Return nothing if the polygon is self-intersecting or some vertices are overlapped.
MolecularGraph.Geometry.midpoint — Methodmidpoint(u::Point, v::Point) -> Point
midpoint(s::Segment) -> Point
midpoint(coords::AbstractMatrix{T}) where {T<:Real} -> AbstractMatrixReturn the midpoint of u and v.
MolecularGraph.Geometry.unitvector — Methodunitvector(u::Point, v::Point) -> Point
unitvector(s::Segment) -> Point
unitvector(coords::AbstractMatrix{T}) where {T<:Real} -> AbstractMatrixReturn u -> v vector of length 1.