|
2.0.0b10
catchment modelling framework
|
2D-Point Class. More...
2D-Point Class.
Used as location property anywhere in the text
Public Member Functions | |
| point () | |
| Empty Constructor. Creates an (0 0) location. | |
| point (const point &p) | |
| Copy Constructor. | |
| point (double x_, double y_, double z_=0.0) | |
| Creates a point from two doubles. | |
| double | angleToXAxis (point p) const |
| Returns the angle between the line \( \overline{this,p} \) to the x-Axis in degrees. | |
| double | azimuth (point p) const |
| Returns the azimuth angle of the line \( \overline{this,p} \) to the Azimuth in degrees. | |
| double | distance3DTo (point p) const |
| Returns the euclidian distance in space to another point p. | |
| double | distance_max (point p) const |
| Returns the distance by the maximum orthogonal offset. | |
| double | distanceTo (point p) const |
| Returns the horizontal euclidian distance to another point p. | |
| double | sum () const |
| Returns x+y+z. | |
| double | z_weight_distance (point p, double z_weight) const |
| Returns the horizontal euclidian distance plus the absolute of the height difference times a factor. | |
Static Public Member Functions | |
| static double | distance (point p1, point p2) |
| Returns the horizontal euclidian distance between p1 and p2. | |
Public Attributes | |
| double | x |
| East-value of the location in m. | |
| double | y |
| North-value of the location in m. | |
| double | z |
| Height of the location in m.a.s.l. | |
| double distanceTo | ( | point | p | ) | const |
Returns the horizontal euclidian distance to another point p.
\(\sqrt{(this.x-p.x)^2+(this.y-p.y)^2}\)
| double z_weight_distance | ( | point | p, |
| double | z_weight ) const |
Returns the horizontal euclidian distance plus the absolute of the height difference times a factor.
\(\sqrt{(this.x-p.x)^2+(this.y-p.y)^2}\ +\ w_{z}|this.z-p.z|\)