Struct D2D1Triangle
Contains the three vertices that describe a triangle.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
public struct D2D1Triangle : IEquatable<D2D1Triangle>Constructors
| Edit this page View SourceD2D1Triangle(D2D1Point2F, D2D1Point2F, D2D1Point2F)
Initializes a new instance of the D2D1Triangle struct.
Declaration
public D2D1Triangle(D2D1Point2F point1, D2D1Point2F point2, D2D1Point2F point3)Parameters
| Type | Name | Description | 
|---|---|---|
| D2D1Point2F | point1 | The first vertex of a triangle. | 
| D2D1Point2F | point2 | The second vertex of a triangle. | 
| D2D1Point2F | point3 | The third vertex of a triangle. | 
Properties
| Edit this page View SourcePoint1
Gets or sets the first vertex of a triangle.
Declaration
public D2D1Point2F Point1 { get; set; }Property Value
| Type | Description | 
|---|---|
| D2D1Point2F | 
Point2
Gets or sets the second vertex of a triangle.
Declaration
public D2D1Point2F Point2 { get; set; }Property Value
| Type | Description | 
|---|---|
| D2D1Point2F | 
Point3
Gets or sets the third vertex of a triangle.
Declaration
public D2D1Point2F Point3 { get; set; }Property Value
| Type | Description | 
|---|---|
| D2D1Point2F | 
Methods
| Edit this page View SourceEquals(D2D1Triangle)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D2D1Triangle other)Parameters
| Type | Name | Description | 
|---|---|---|
| D2D1Triangle | 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 ==(D2D1Triangle, D2D1Triangle)
Compares two D2D1Triangle objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D2D1Triangle left, D2D1Triangle right)Parameters
| Type | Name | Description | 
|---|---|---|
| D2D1Triangle | left | The left D2D1Triangle to compare. | 
| D2D1Triangle | right | The right D2D1Triangle to compare. | 
Returns
| Type | Description | 
|---|---|
| bool | 
operator !=(D2D1Triangle, D2D1Triangle)
Compares two D2D1Triangle objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D2D1Triangle left, D2D1Triangle right)Parameters
| Type | Name | Description | 
|---|---|---|
| D2D1Triangle | left | The left D2D1Triangle to compare. | 
| D2D1Triangle | right | The right D2D1Triangle to compare. | 
Returns
| Type | Description | 
|---|---|
| bool |