ExtensionsIsRectangle Method

Try to find out it is a rectangle. This requires sorted lines for each side of the rectangle.

Definition

Namespace: PCBI.Automation
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public static bool IsRectangle(
	this IPolyClass this,
	out double angle,
	int precision = 3
)

Parameters

this  IPolyClass
IPolyClass to calculate the rectangle check.
angle  Double
 
precision  Int32  (Optional)
Compare values with precision digits by rounding are used.

Return Value

Boolean
True if the polygon is a rectangle.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPolyClass. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also