Struct Triangle3DF
A 3D triangle
public struct Triangle3DF : IEquatable<Triangle3DF>
- Implements
- Inherited Members
Constructors
Triangle3DF(MCvPoint3D32f, MCvPoint3D32f, MCvPoint3D32f)
Create a triangle using the specific vertices
public Triangle3DF(MCvPoint3D32f v0, MCvPoint3D32f v1, MCvPoint3D32f v2)
Parameters
v0
MCvPoint3D32fThe first vertex
v1
MCvPoint3D32fThe second vertex
v2
MCvPoint3D32fThe third vertex
Properties
Area
Get the area of this triangle
public double Area { get; }
Property Value
Centeroid
Returns the centroid of this triangle
public MCvPoint3D32f Centeroid { get; }
Property Value
Normal
Get the normal of this triangle
public MCvPoint3D32f Normal { get; }
Property Value
V0
One of the vertex of the triangle
public MCvPoint3D32f V0 { get; set; }
Property Value
V1
One of the vertex of the triangle
public MCvPoint3D32f V1 { get; set; }
Property Value
V2
One of the vertex of the triangle
public MCvPoint3D32f V2 { get; set; }
Property Value
Methods
Equals(Triangle3DF)
Compare two triangles and return true if equal
public bool Equals(Triangle3DF tri)
Parameters
tri
Triangle3DFthe other triangles to compare with
Returns
- bool
true if the two triangles equals, false otherwise