Maria GDK 4.6.0.140
Documentation of managed code in release branch
Loading...
Searching...
No Matches
TPG.GeoUnits.BoundingCircle Class Reference

Geographic bounding circle based on center and range. More...

Public Member Functions

 BoundingCircle (GeoPos center, double r)
 Construct bounding circle from center and radius in meters.
 
 BoundingCircle (GeoPos p1, GeoPos p2)
 Construct bounding circle from 2 points.
 
 BoundingCircle (GeoPos p1, GeoPos p2, GeoPos p3)
 Construct bounding circle passing through 3 points.
 
bool Inside (GeoPos p)
 Check is a position is inside this bounding circle.
 

Static Public Member Functions

static BoundingCircle Calculate (GeoPos[] posList)
 Calculate bounding circle based on an array of positions.
 

Static Public Attributes

static int RngSeed = 0
 For testing: set specific random seed to allow reproduceable tests.
 

Properties

GeoPos Center [get, set]
 Center of bounding circle.
 
double Radius [get, set]
 Radius of bounding circle in meters.
 

Detailed Description

Geographic bounding circle based on center and range.

Member Function Documentation

◆ Calculate()

static BoundingCircle TPG.GeoUnits.BoundingCircle.Calculate ( GeoPos[]  posList)
inlinestatic

Calculate bounding circle based on an array of positions.

This has a worst-case complexity of O(n^2), but typical performance for randomly ordered points is O(n). Input points are shuffled to prevent degenerate cases.


The documentation for this class was generated from the following file: