MinimumDiameter

class MinimumDiameter(val inputGeom: Geometry, val isConvex: Boolean)
Companion
object
class Object
trait Matchable
class Any

Value members

Constructors

def this(inputGeom: Geometry)

Compute a minimum diameter for a given {link Geometry}.

Compute a minimum diameter for a given {link Geometry}.

Value Params
inputGeom

a Geometry

Concrete methods

Gets a {link LineString} which is a minimum diameter

Gets a {link LineString} which is a minimum diameter

return a { @link LineString} which is a minimum diameter

def getLength: Double

Gets the length of the minimum diameter of the input Geometry

Gets the length of the minimum diameter of the input Geometry

return the length of the minimum diameter

Gets the minimum rectangular {link Polygon} which encloses the input geometry. The rectangle has width equal to the minimum diameter, and a longer length. If the convex hull of the input is degenerate (a line or point) a {link LineString} or {link Point} is returned.

Gets the minimum rectangular {link Polygon} which encloses the input geometry. The rectangle has width equal to the minimum diameter, and a longer length. If the convex hull of the input is degenerate (a line or point) a {link LineString} or {link Point} is returned.

The minimum rectangle can be used as an extremely generalized representation for the given geometry.

return the minimum rectangle enclosing the input (or a line or point if degenerate)

Gets the segment forming the base of the minimum diameter

Gets the segment forming the base of the minimum diameter

return the segment forming the base of the minimum diameter

Gets the {link Coordinate} forming one end of the minimum diameter

Gets the {link Coordinate} forming one end of the minimum diameter

return a coordinate forming one end of the minimum diameter

Concrete fields

val isConvex: Boolean