Class Geometry.Polygon
Represents a polygon.
Inheritance
System.Object
Geometry.Polygon
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Oasys.Common.Logic
Assembly: Oasys.Common.dll
Syntax
public class Polygon
Fields
Points
The points
Declaration
public List<Vector2> Points
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<SharpDX.Vector2> |
Methods
Add(Geometry.Polygon)
Adds the specified polygon.
Declaration
public void Add(Geometry.Polygon polygon)
Parameters
Type | Name | Description |
---|---|---|
Geometry.Polygon | polygon | The polygon. |
Add(Vector2)
Adds the specified point.
Declaration
public void Add(Vector2 point)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector2 | point | The point. |
Add(Vector3)
Adds the specified point.
Declaration
public void Add(Vector3 point)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector3 | point | The point. |
Draw(Color, Int32)
Draws the polygon.
Declaration
public virtual void Draw(Color color, int width = 1)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Color | color | The color. |
System.Int32 | width | The width. |
IsInside(GameObjectBase)
Determines whether the specified point is inside.
Declaration
public bool IsInside(GameObjectBase point)
Parameters
Type | Name | Description |
---|---|---|
GameObjectBase | point | The point. |
Returns
Type | Description |
---|---|
System.Boolean |
IsInside(Vector2)
Determines whether the specified point is inside.
Declaration
public bool IsInside(Vector2 point)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector2 | point | The point. |
Returns
Type | Description |
---|---|
System.Boolean |
IsInside(Vector3)
Determines whether the specified point is inside.
Declaration
public bool IsInside(Vector3 point)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector3 | point | The point. |
Returns
Type | Description |
---|---|
System.Boolean |
IsOutside(Vector2)
Determines whether the specified point is outside.
Declaration
public bool IsOutside(Vector2 point)
Parameters
Type | Name | Description |
---|---|---|
SharpDX.Vector2 | point | The point. |
Returns
Type | Description |
---|---|
System.Boolean |
ToClipperPath()
Converts this instance to a clipper path.
Declaration
public List<IntPoint> ToClipperPath()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<IntPoint> |