Class ElementaryRegion2D
- Namespace
- VirtualLabAPI.Core.Numerics.Region2D
- Assembly
- VirtualLabAPI.dll
Base class for all Region2D derived classes which are not composed.
[Serializable]
public abstract class ElementaryRegion2D : Region2D, ISerializable, IDeserializationCallback, IRegion1D2D, IDocument, IEquatable<IObjectBase>, IDisposable, ICloneable
- Inheritance
-
ObjectBaseSerializableObjectBaseManualSerializationDocumentBaseElementaryRegion2D
- Implements
-
IEquatable<IObjectBase>
- Derived
- Inherited Members
- Extension Methods
Constructors
ElementaryRegion2D(bool, PhysicalProperty, PhysicalProperty)
Constructor which gets the _boundariesAreInside flag. To be called from derived classes constructors.
public ElementaryRegion2D(bool boundariesAreInside, PhysicalProperty propertyOfCoordinatesX = PhysicalProperty.Length, PhysicalProperty propertyOfCoordinatesY = PhysicalProperty.Length)
Parameters
boundariesAreInsideboolIf true, values lying exactly on the boundaries are considered as being 'inside' the region.
propertyOfCoordinatesXPhysicalPropertyPhysical property of the x-coordinate.
propertyOfCoordinatesYPhysicalPropertyPhysical property of the y-coordinate.
ElementaryRegion2D(ElementaryRegion2D)
Copy constructor.
public ElementaryRegion2D(ElementaryRegion2D region2bCopied)
Parameters
region2bCopiedElementaryRegion2DThe region to be copied.
Methods
CalculateDistanceOfPointToRegionBorder(VectorD)
Calculates the distance of a point to the border of this region.
public abstract double CalculateDistanceOfPointToRegionBorder(VectorD point)
Parameters
pointVectorDPoint to calculate the distance for.
Returns
- double
The distance of the given point to the border of this region
Operators
operator ==(ElementaryRegion2D, ElementaryRegion2D)
Equality operator
public static bool operator ==(ElementaryRegion2D o1, ElementaryRegion2D o2)
Parameters
o1ElementaryRegion2DThe first region.
o2ElementaryRegion2DThe second region.
Returns
- bool
Whether the two regions are equal.
operator !=(ElementaryRegion2D, ElementaryRegion2D)
Inequality operator.
public static bool operator !=(ElementaryRegion2D o1, ElementaryRegion2D o2)
Parameters
o1ElementaryRegion2DThe first region.
o2ElementaryRegion2DThe second region.
Returns
- bool
Whether the two regions are equal.