Click or drag to resize

Quad Class

Represents a quadrilateral with the 4 corner coordinates. It includes functionality for bilinear interpolation within the quadrilateral.

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

Inheritance Hierarchy
SystemObject
  DHI.Mike1D.Generic.Spatial.GeometryQuad

Namespace:  DHI.Mike1D.Generic.Spatial.Geometry
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 16.0.0.0 (11.1.1.1111)
Syntax
C#
public class Quad

The Quad type exposes the following members.

Constructors
  NameDescription
Public methodQuad
Default constructor
Top
Properties
  NameDescription
Public propertyC00
Bottom left coordinate
Public propertyC01
Top left coordinate
Public propertyC10
Bottom rightcoordinate
Public propertyC11
Top right coordinate
Public propertyIsDegenerate
Is Quad Degenerate? Quad is Degenerate when it becomes a triangle
Top
Methods
  NameDescription
Public methodCalculateExtent
Calculates the extent of the quad.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsPointInQuad
Is Point in Quad?
Public methodMapUv2Xy
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.
Public methodMapXy2Uv
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]
Public methodMapXy2Uv1 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
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also