Click or drag to resize
DigitalRuneTriangle Structure
Defines a triangle.

Namespace: DigitalRune.Geometry.Shapes
Assembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.18.0.0 (1.18.2.14427)
Syntax
[SerializableAttribute]
public struct Triangle : IEquatable<Triangle>

The Triangle type exposes the following members.

Constructors
  NameDescription
Public methodTriangle(TriangleShape)
Initializes a new instance of Triangle from a TriangleShape.
Public methodTriangle(Vector3F, Vector3F, Vector3F)
Initializes a new instance of Triangle from three points.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Triangle)
Determines whether the specified Triangle is equal to the current Triangle.
Public methodGetAabb
Computes the axis-aligned bounding box (AABB) for this triangle positioned in world space using the given Pose.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Tests if two Triangles are equal.
Public operatorStatic memberInequality
Tests if two Triangles are different.
Top
Fields
  NameDescription
Public fieldVertex0
The first vertex.
Public fieldVertex1
The second vertex.
Public fieldVertex2
The third vertex.
Top
Properties
  NameDescription
Public propertyAabb
Gets the axis-aligned bounding box (AABB) for this triangle.
Public propertyItem
Gets or sets the vertex at the specified index.
Public propertyNormal
Gets the normal.
Top
Remarks

This is a lightweight structure. To define a triangle shape for IGeometricObject use TriangleShape.

Two Triangles are considered as equal if they contain the same vertices in the same order.

See Also