|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fhg.igd.earth.utils.Geometry
This is a geometry class.
It is used to convert FlatProjector coordinates to SphereProjector
coordinates and back . Also you can calculate distances between two
geopositions. The Points2Arc() method calculates a 3D Arc
between two geopositions.
Title : Earth
Copyright : Copyright (c) 2001
Organisation : IGD FhG
| Field Summary | |
static double |
arcLength
the arcLength in km |
static double |
earthRadius
the earth raduis in km |
(package private) static double |
factor
deg->rad factor |
(package private) static double |
scaleZ
Flat->Sphere z-factor |
| Constructor Summary | |
Geometry()
Creates an instance of this class. |
|
| Method Summary | |
static double |
calcAmplitude(cVector3d v1,
cVector3d v2,
cVector3d vn)
Calculates the amplitude for vn. |
static cVector3d |
devide(cVector3d v1,
cVector3d v2)
Creates a new vector that lies between v1 and v2 with the same length as v1. |
static double |
distance(cPoint3d p1,
cPoint3d p2)
Calculates the distance between to geopositions (Points) in degrees. |
static double |
distance(cVector3d v1,
cVector3d v2)
Calculates the distance between to geopositions (Vectors) in degrees. |
static cPoint3d |
Flat2Sphere(cPoint3d p)
Converts a FlatProjector point to a SphereProjector point (bending) |
static cPoint3d |
Points2Arc(cPoint3d p1,
cPoint3d p2,
double percent)
Calculates a point on a 3D arc between two geopositions. |
static cPoint3d |
Sphere2Flat(cPoint3d p)
Converts a SphereProjector point to a FlatProjector point (rebending) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final double factor
static final double scaleZ
public static final double earthRadius
public static final double arcLength
| Constructor Detail |
public Geometry()
| Method Detail |
public static cPoint3d Flat2Sphere(cPoint3d p)
public static cPoint3d Sphere2Flat(cPoint3d p)
public static cPoint3d Points2Arc(cPoint3d p1,
cPoint3d p2,
double percent)
p1 - Point 1p2 - Point 2percent - Value to select a point between p1 and p2
public static double calcAmplitude(cVector3d v1,
cVector3d v2,
cVector3d vn)
v1 - start Vectorv2 - end Vectorvn - current Vector
public static double distance(cPoint3d p1,
cPoint3d p2)
p1 - start Pointp2 - end Point
public static double distance(cVector3d v1,
cVector3d v2)
v1 - start Vectorv2 - end Vector
public static cVector3d devide(cVector3d v1,
cVector3d v2)
v1 - Vector 1v2 - Vector 2
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||