Search Results for

    Show / Hide Table of Contents

    Class Geometry.Polygon.Ring

    Represents a ring polygon.

    Inheritance
    System.Object
    Geometry.Polygon
    Geometry.Polygon.Ring
    Inherited Members
    Geometry.Polygon.Points
    Geometry.Polygon.Add(Vector2)
    Geometry.Polygon.Add(Vector3)
    Geometry.Polygon.Add(Geometry.Polygon)
    Geometry.Polygon.Draw(Color, Int32)
    Geometry.Polygon.IsInside(Vector2)
    Geometry.Polygon.IsInside(Vector3)
    Geometry.Polygon.IsInside(GameObjectBase)
    Geometry.Polygon.IsOutside(Vector2)
    Geometry.Polygon.ToClipperPath()
    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 Ring : Geometry.Polygon

    Constructors

    Ring(Vector2, Single, Single, Int32)

    Initializes a new instance of the Geometry.Polygon.Ring class.

    Declaration
    public Ring(Vector2 center, float innerRadius, float outerRadius, int quality = 20)
    Parameters
    Type Name Description
    SharpDX.Vector2 center

    The center.

    System.Single innerRadius

    The inner radius.

    System.Single outerRadius

    The outer radius.

    System.Int32 quality

    The quality.

    Ring(Vector3, Single, Single, Int32)

    Initializes a new instance of the Geometry.Polygon.Ring class.

    Declaration
    public Ring(Vector3 center, float innerRadius, float outerRadius, int quality = 20)
    Parameters
    Type Name Description
    SharpDX.Vector3 center

    The center.

    System.Single innerRadius

    The inner radius.

    System.Single outerRadius

    The outer radius.

    System.Int32 quality

    The quality.

    Fields

    Center

    The center

    Declaration
    public Vector2 Center
    Field Value
    Type Description
    SharpDX.Vector2

    InnerRadius

    The inner radius

    Declaration
    public float InnerRadius
    Field Value
    Type Description
    System.Single

    OuterRadius

    The outer radius

    Declaration
    public float OuterRadius
    Field Value
    Type Description
    System.Single

    Methods

    UpdatePolygon(Int32)

    Updates the polygon.

    Declaration
    public void UpdatePolygon(int offset = 0)
    Parameters
    Type Name Description
    System.Int32 offset

    The offset.

    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
    • Constructors
      • Ring(Vector2, Single, Single, Int32)
      • Ring(Vector3, Single, Single, Int32)
    • Fields
      • Center
      • InnerRadius
      • OuterRadius
    • Methods
      • UpdatePolygon(Int32)
    • Extension Methods
    Back to top
    Generated by DocFX
    ☀
    ☾