Quad Class |
The line between c00 and c10 is considered the "x-axis" of the quad, while the line between c00 and c01 is considered the "y-axis" of the quad.
The quad can either be a anti-clockwise/left quad or a clockwise/right quad. Anti-clockwise means that the positive y-axis is in the anti-clockwise direction from the positive x-axis, that the c01 point on the y-axis is "left of" the x-axis - the line between c00 and c01
For the mapping methods to work, the quad must be convex. The mapping methods also work for degenerate quads (triangles), though the mapping at the degenerate areas may not be unique.
Two types of degenerate quads are handled by the mappings: 1) Two consequtive points equal, e.g. c11 equals c01. 2) c01 is on the line between c00 and c11, or c11 is on the line between c01 and c10
Namespace: DHI.Mike1D.Generic.Spatial.Geometry
public class Quad
The Quad type exposes the following members.
Name | Description | |
---|---|---|
C00 | Bottom left coordinate | |
C01 | Top left coordinate | |
C10 | Bottom rightcoordinate | |
C11 | Top right coordinate | |
IsDegenerate |
Is Quad Degenerate? Quad is Degenerate when it becomes a triangle
|
Name | Description | |
---|---|---|
CalculateExtent |
Calculates the extent of the quad.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsPointInQuad |
Is Point in Quad?
| |
MapUv2Xy |
Mapping from coordinate system u,v to X, Y geographic coordinates
u normalized chainage [0;1] and v normalized distance from centre [-1; 1].
Bilinear interpolation.
| |
MapXy2Uv |
Mapping from geographic coordinates (x,y) to local coordinate system (u,v),
u normalized distance in base line direction, v normalized distance
in height direction. Both in interval [0,1]
| |
MapXy2Uv1 | Obsolete.
Mapping from geographic coordinates X,Y to coordinate system u,v
u normalized chainage [0;1] and v normalized distance from centre [-1; 1]
Remember: Solved by u; The documentation solves it by v
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |