[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.Triangle

Struct Triangle

Namespace
GrapeCity.Documents.Common
Assembly
GcDocs.Imaging.dll

Represents a triangle defined by its three vertices.

public struct Triangle : IEquatable<Triangle>
Implements
System.IEquatable<T><Triangle>
Inherited Members
System.ValueType.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

Triangle(PointF, PointF, PointF)

Initializes a new instance of the Triangle struct from its three vertices.

public Triangle(PointF a, PointF b, PointF c)

Parameters

a System.Drawing.PointF

The triangle's first vertex.

b System.Drawing.PointF

The triangle's second vertex.

c System.Drawing.PointF

The triangle's third vertex.

Properties

A

The first vertex of the triangle.

public PointF A { get; set; }

Property Value

System.Drawing.PointF

B

The second vertex of the triangle.

public PointF B { get; set; }

Property Value

System.Drawing.PointF

C

The third vertex of the triangle.

public PointF C { get; set; }

Property Value

System.Drawing.PointF

Methods

Equals(Triangle)

public bool Equals(Triangle other)

Parameters

other Triangle

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(Triangle, Triangle)

Tests whether two specified Triangle objects are equivalent.

public static bool operator ==(Triangle v1, Triangle v2)

Parameters

v1 Triangle
v2 Triangle

Returns

bool

operator !=(Triangle, Triangle)

Tests whether two specified Line objects are not equivalent.

public static bool operator !=(Triangle v1, Triangle v2)

Parameters

v1 Triangle
v2 Triangle

Returns

bool