Triangle

Implements IEquatable<T>

Declaration

[Serializable]
public struct Triangle

Description

A data structure of a mesh triangle comprised of 3 verticies.

Properties

v1The first vertex of the triangle.
v2The second vertex of the triangle.
v3The third vertex of the triangle.
Item[int]Gets or sets a vertex of the triangle at the given index.

Constructors

TriangleCreates a new triangle with the specified verticies.

Methods

EqualsDetermines if the triangle is equal to another triangle.
GetHashCodeReturns the hash code of the triangle.
ToStringConverts the triangle to a string.

Operators

EqualityDetermines if two triangles are equal.
InequalityDetermines if two triangles are not equal.