Search Results for

    Show / Hide Table of Contents

    Class Geometry.Polygon.Sector

    Represnets a sector polygon.

    Inheritance
    System.Object
    Geometry.Polygon
    Geometry.Polygon.Sector
    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 Sector : Geometry.Polygon

    Constructors

    Sector(Vector2, Vector2, Single, Single, Int32)

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

    Declaration
    public Sector(Vector2 center, Vector2 direction, float angle, float radius, int quality = 20)
    Parameters
    Type Name Description
    SharpDX.Vector2 center

    The center.

    SharpDX.Vector2 direction

    The direction.

    System.Single angle

    The angle.

    System.Single radius

    The radius.

    System.Int32 quality

    The quality.

    Sector(Vector3, Vector3, Single, Single, Int32)

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

    Declaration
    public Sector(Vector3 center, Vector3 direction, float angle, float radius, int quality = 20)
    Parameters
    Type Name Description
    SharpDX.Vector3 center

    The center.

    SharpDX.Vector3 direction

    The direction.

    System.Single angle

    The angle.

    System.Single radius

    The radius.

    System.Int32 quality

    The quality.

    Fields

    Angle

    The angle

    Declaration
    public float Angle
    Field Value
    Type Description
    System.Single

    Center

    The center

    Declaration
    public Vector2 Center
    Field Value
    Type Description
    SharpDX.Vector2

    Direction

    The direction

    Declaration
    public Vector2 Direction
    Field Value
    Type Description
    SharpDX.Vector2

    Radius

    The radius

    Declaration
    public float Radius
    Field Value
    Type Description
    System.Single

    Methods

    RotateLineFromPoint(Vector2, Vector2, Single, Boolean)

    Rotates Line by angle/radian

    Declaration
    public Vector2 RotateLineFromPoint(Vector2 point1, Vector2 point2, float value, bool radian = true)
    Parameters
    Type Name Description
    SharpDX.Vector2 point1
    SharpDX.Vector2 point2
    System.Single value
    System.Boolean radian

    True for radian values, false for degree

    Returns
    Type Description
    SharpDX.Vector2

    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
    Back to top
    Generated by DocFX
    ☀
    ☾