C# Class Fusion.Engine.Graphics.GIS.GeoHelper

Show file Open project: demiurghg/FusionEngine

Public Properties

Property Type Description
EarthOneDegreeLengthOnEquatorMeters double
EarthRadius double

Public Methods

Method Description
CalculateBasisOnSurface ( DVector2 lonLatRad, bool includeTranslation = false ) : DMatrix
CartesianToSpherical ( System.DVector3 cart ) : DVector2
CartesianToSpherical ( System.DVector3 cart, double &lon, double &lat ) : void
DistanceBetweenTwoPoints ( DVector2 lonLatP0, DVector2 lonLatP1, double earthRadius = 6378.137 ) : double
LineIntersection ( System.DVector3 lineOrigin, System.DVector3 lineEnd, double radius, System.DVector3 &intersectionPoints ) : bool
RhumbDestinationPoint ( DVector2 startPoint, double bearing, double distance, double radius = 6378.137 ) : DVector2
SphericalToCartesian ( DVector2 lonLat, double radius ) : System.DVector3
SphericalToCartesian ( double lon, double lat, double radius, double &x, double &y, double &z ) : void
SphericalToCartesian ( double lon, double lat, float radius, System.DVector3 &cart ) : void

Method Details

CalculateBasisOnSurface() public static method

public static CalculateBasisOnSurface ( DVector2 lonLatRad, bool includeTranslation = false ) : DMatrix
lonLatRad DVector2
includeTranslation bool
return DMatrix

CartesianToSpherical() public static method

public static CartesianToSpherical ( System.DVector3 cart ) : DVector2
cart System.DVector3
return DVector2

CartesianToSpherical() public static method

public static CartesianToSpherical ( System.DVector3 cart, double &lon, double &lat ) : void
cart System.DVector3
lon double
lat double
return void

DistanceBetweenTwoPoints() public static method

public static DistanceBetweenTwoPoints ( DVector2 lonLatP0, DVector2 lonLatP1, double earthRadius = 6378.137 ) : double
lonLatP0 DVector2
lonLatP1 DVector2
earthRadius double
return double

LineIntersection() public static method

public static LineIntersection ( System.DVector3 lineOrigin, System.DVector3 lineEnd, double radius, System.DVector3 &intersectionPoints ) : bool
lineOrigin System.DVector3
lineEnd System.DVector3
radius double
intersectionPoints System.DVector3
return bool

RhumbDestinationPoint() public static method

public static RhumbDestinationPoint ( DVector2 startPoint, double bearing, double distance, double radius = 6378.137 ) : DVector2
startPoint DVector2
bearing double
distance double
radius double
return DVector2

SphericalToCartesian() public static method

public static SphericalToCartesian ( DVector2 lonLat, double radius ) : System.DVector3
lonLat DVector2
radius double
return System.DVector3

SphericalToCartesian() public static method

public static SphericalToCartesian ( double lon, double lat, double radius, double &x, double &y, double &z ) : void
lon double
lat double
radius double
x double
y double
z double
return void

SphericalToCartesian() public static method

public static SphericalToCartesian ( double lon, double lat, float radius, System.DVector3 &cart ) : void
lon double
lat double
radius float
cart System.DVector3
return void

Property Details

EarthOneDegreeLengthOnEquatorMeters public static property

public static double EarthOneDegreeLengthOnEquatorMeters
return double

EarthRadius public static property

public static double EarthRadius
return double