Name | Description | |
---|---|---|

NPolygon Constructor | Overloaded. |

Nevron Open Vision Documentation

NPolygon Class Members

In This Topic

The following tables list the members exposed by NPolygon.

Public Constructors

Name | Description | |
---|---|---|

NPolygon Constructor | Overloaded. |

Public Properties

Name | Description | |
---|---|---|

Bounds | Gets the bounds of this geometry object. (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

BoundsRange | Gets the bounds of this geometry object (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

IsConvex | Determines whether this polygon is convex. A polygon is convex if the perp dot product of each subsequent pair of edge vectors has the same sign. | |

IsEmpty | Gets whether this object is empty (i.e. contains no points) (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

IsSealed | Gets whether this graphics object is sealed. (Inherited from Nevron.Nov.Graphics.NSealableObject) | |

Item | Gets or sets the point at the specified index. (Inherited from Nevron.Nov.Graphics.NPolyPointsBase) | |

Perimeter | Gets the perimeter of the polygon. |

Public Methods

Name | Description | |
---|---|---|

Add | Overloaded. Adds a point with the specified coordinates (Inherited from Nevron.Nov.Graphics.NPolyPointsBase) | |

AddToPath | Overridden. Appends the primitive to the specified graphics path | |

Contains | Overloaded. Determines whether the primitive interior contains the specified point | |

ContainsOnOutline | Overridden. Determines whether the outline of the polygon contains the specified point | |

DeepClone | Overridden. Creates an identical copy of this object. | |

GetContourPositionAndAngle | Tries to get the percent position and angle from the specified location factor. | |

GetLongestLine | Gets the longest horizontal inner line in the polygon. | |

GetNearestIntersection | Gets the nearest intersection point to dirPoint out of all intersections between this geometry and the centerPoint:dirPoint vector. All points are in shape local coordinates. | |

GetOutlineLength | Overridden. Gets the outline length. | |

GetPoint | Gets the point at the specified index (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

GetPointCount | Gets the count of points (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

GetPoints | Gets an array of the points contained in this geometry. (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

IntersectsWith | Overloaded. Determines whether this polygon intersects with the specified line | |

IntersectWith | Overloaded. Intersects this polygon with the specified line segment | |

Recycle | Recycles this geometry object. (Inherited from Nevron.Nov.Graphics.NPolyPointsBase) | |

Scale | Scales the points contained in this path with the specified scale factors (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

Seal | Seals this graphics object. Further attempts to modify the object throw an exception. (Inherited from Nevron.Nov.Graphics.NSealableObject) | |

SetPoint | Overloaded. Sets the point at the specified index. (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

Simplify | Simplifies this polyline and returns the new simplified polyline | |

ToPolyline | Creates a polyline from this polygon. | |

Transform | Transforms the graphics path with the specified transform (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

Translate | Translates the points contained in this path with the specified amounts (Inherited from Nevron.Nov.Graphics.NMultiPointBase) | |

TryGetLongestLine | Gets the longest horizontal inner line in the polygon that is at least at the specified distance from all sides. Returns false if no such line exists. |

Protected Methods

Name | Description | |
---|---|---|

CanSeal | Determines whether this object can be sealed. (Inherited from Nevron.Nov.Graphics.NSealableObject) | |

OnSealed | Called when the object is sealed (Inherited from Nevron.Nov.Graphics.NSealableObject) |

See Also