Cartesian

MolecularGraph.Geometry.distanceMethod
distance(u::Point, v::Point) -> Float64
distance(s::Segment) -> Float64
distance(coords::AbstractMatrix{T}) where {T<:Real} -> Float64

Return distance between two endpoints.

source
MolecularGraph.Geometry.isclockwiseMethod
isclockwise(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.

source
MolecularGraph.Geometry.midpointMethod
midpoint(u::Point, v::Point) -> Point
midpoint(s::Segment) -> Point
midpoint(coords::AbstractMatrix{T}) where {T<:Real} -> AbstractMatrix

Return the midpoint of u and v.

source
MolecularGraph.Geometry.unitvectorMethod
unitvector(u::Point, v::Point) -> Point
unitvector(s::Segment) -> Point
unitvector(coords::AbstractMatrix{T}) where {T<:Real} -> AbstractMatrix

Return u -> v vector of length 1.

source