Table of Contents

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
ObjectBase
SerializableObjectBase
ManualSerialization
DocumentBase
ElementaryRegion2D
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

boundariesAreInside bool

If true, values lying exactly on the boundaries are considered as being 'inside' the region.

propertyOfCoordinatesX PhysicalProperty

Physical property of the x-coordinate.

propertyOfCoordinatesY PhysicalProperty

Physical property of the y-coordinate.

ElementaryRegion2D(ElementaryRegion2D)

Copy constructor.

public ElementaryRegion2D(ElementaryRegion2D region2bCopied)

Parameters

region2bCopied ElementaryRegion2D

The 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

point VectorD

Point 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

o1 ElementaryRegion2D

The first region.

o2 ElementaryRegion2D

The second region.

Returns

bool

Whether the two regions are equal.

operator !=(ElementaryRegion2D, ElementaryRegion2D)

Inequality operator.

public static bool operator !=(ElementaryRegion2D o1, ElementaryRegion2D o2)

Parameters

o1 ElementaryRegion2D

The first region.

o2 ElementaryRegion2D

The second region.

Returns

bool

Whether the two regions are equal.