Class Geometry.Polygon.Sector
Represnets a sector 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 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. |