Search Results for

    Show / Hide Table of Contents

    Class Geometry.Polygon

    Represents a polygon.

    Inheritance
    System.Object
    Geometry.Polygon
    Geometry.Polygon.Arc
    Geometry.Polygon.Circle
    Geometry.Polygon.Line
    Geometry.Polygon.Rectangle
    Geometry.Polygon.Ring
    Geometry.Polygon.Sector
    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>

    Extension Methods

    Extensions.In<T>(T, T[])
    Geometry.CenterOfPolygone(Geometry.Polygon)
    Geometry.MovePolygone(Geometry.Polygon, Vector2)
    Geometry.RotatePolygon(Geometry.Polygon, Vector2, Single)
    Geometry.RotatePolygon(Geometry.Polygon, Vector2, Vector2)
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾