Struct D2D1ArcSegment
Describes an elliptical arc between two points.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1ArcSegment : IEquatable<D2D1ArcSegment>
Constructors
| Edit this page View SourceD2D1ArcSegment(D2D1Point2F, D2D1SizeF, float, D2D1SweepDirection, D2D1ArcSize)
Initializes a new instance of the D2D1ArcSegment struct.
Declaration
public D2D1ArcSegment(D2D1Point2F point, D2D1SizeF size, float rotationAngle, D2D1SweepDirection sweepDirection, D2D1ArcSize arcSize)
Parameters
Type | Name | Description |
---|---|---|
D2D1Point2F | point | The end point of the arc. |
D2D1SizeF | size | The x-radius and y-radius of the arc. |
float | rotationAngle | A value that specifies how many degrees in the clockwise direction the ellipse is rotated relative to the current coordinate system. |
D2D1SweepDirection | sweepDirection | A value that specifies whether the arc sweep is clockwise or counterclockwise. |
D2D1ArcSize | arcSize | A value that specifies whether the given arc is larger than 180 degrees. |
Properties
| Edit this page View SourceArcSize
Gets or sets a value that specifies whether the given arc is larger than 180 degrees.
Declaration
public D2D1ArcSize ArcSize { get; set; }
Property Value
Type | Description |
---|---|
D2D1ArcSize |
Point
Gets or sets the end point of the arc.
Declaration
public D2D1Point2F Point { get; set; }
Property Value
Type | Description |
---|---|
D2D1Point2F |
RotationAngle
Gets or sets a value that specifies how many degrees in the clockwise direction the ellipse is rotated relative to the current coordinate system.
Declaration
public float RotationAngle { get; set; }
Property Value
Type | Description |
---|---|
float |
Size
Gets or sets the x-radius and y-radius of the arc.
Declaration
public D2D1SizeF Size { get; set; }
Property Value
Type | Description |
---|---|
D2D1SizeF |
SweepDirection
Gets or sets a value that specifies whether the arc sweep is clockwise or counterclockwise.
Declaration
public D2D1SweepDirection SweepDirection { get; set; }
Property Value
Type | Description |
---|---|
D2D1SweepDirection |
Methods
| Edit this page View SourceEquals(D2D1ArcSegment)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1ArcSegment other)
Parameters
Type | Name | Description |
---|---|---|
D2D1ArcSegment | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D2D1ArcSegment, D2D1ArcSegment)
Compares two D2D1ArcSegment objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1ArcSegment left, D2D1ArcSegment right)
Parameters
Type | Name | Description |
---|---|---|
D2D1ArcSegment | left | The left D2D1ArcSegment to compare. |
D2D1ArcSegment | right | The right D2D1ArcSegment to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D2D1ArcSegment, D2D1ArcSegment)
Compares two D2D1ArcSegment objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1ArcSegment left, D2D1ArcSegment right)
Parameters
Type | Name | Description |
---|---|---|
D2D1ArcSegment | left | The left D2D1ArcSegment to compare. |
D2D1ArcSegment | right | The right D2D1ArcSegment to compare. |
Returns
Type | Description |
---|---|
bool |