Represents the indices of a triangle (three vertices by a face) in an indexed mesh.   
 More...
Represents the indices of a triangle (three vertices by a face) in an indexed mesh.  
The same Triangle will be created regardless of the order in which indices are fed to the constructor. 
◆ Triangle() [1/2]
      
        
          | Infohazard.HyperNav.Triangle.Triangle | ( | int | vertex1, | 
        
          |  |  | int | vertex2, | 
        
          |  |  | int | vertex3 | 
        
          |  | ) |  |  | 
      
 
Construct a new Triangle with the given indices.  
The order of the indices doesn't matter; the same Triangle is constructed either way. No two of the indices can be the same. 
- Parameters
- 
  
    | vertex1 | First vertex index. |  | vertex2 | Second vertex index. |  | vertex3 | Third vertex index. |  
 
 
 
◆ Triangle() [2/2]
      
        
          | Infohazard.HyperNav.Triangle.Triangle | ( | int3 | vertices | ) |  | 
      
 
Construct a new Triangle with the given indices.  
- Parameters
- 
  
  
 
 
◆ Contains()
      
        
          | bool Infohazard.HyperNav.Triangle.Contains | ( | int | vertex | ) |  | 
      
 
Returns whether the triangle contains the given vertex.  
- Parameters
- 
  
    | vertex | Vertex index to check. |  
 
- Returns
- Whether the triangle contains the vertex.
 
 
◆ Equals() [1/2]
      
        
          | override bool Infohazard.HyperNav.Triangle.Equals | ( | object | obj | ) |  | 
      
 
Compare to another object.  
- Parameters
- 
  
  
- Returns
- Whether the two objects are equal.
 
 
◆ Equals() [2/2]
      
        
          | bool Infohazard.HyperNav.Triangle.Equals | ( | Triangle | other | ) |  | 
      
 
Compare to another Triangle.  
- Parameters
- 
  
  
- Returns
- Whether the two triangles are equal.
 
 
◆ GetHashCode()
      
        
          | override int Infohazard.HyperNav.Triangle.GetHashCode | ( |  | ) |  | 
      
 
Get integer for use with hash table.  
- Returns
- Integer hash code.
 
 
◆ ToInt3()
      
        
          | int3 Infohazard.HyperNav.Triangle.ToInt3 | ( |  | ) |  | 
      
 
Convert to int3.  
- Returns
- Triangle as int3.
 
 
◆ InvalidTriangle
  
  | 
        
          | readonly Triangle Infohazard.HyperNav.Triangle.InvalidTriangle = new() { _minVertex = -1, _midVertex = -1, _maxVertex = -1 } |  | static | 
 
 
◆ IsValid
  
  | 
        
          | bool Infohazard.HyperNav.Triangle.IsValid |  | get | 
 
 
◆ Vertex1
  
  | 
        
          | int Infohazard.HyperNav.Triangle.Vertex1 |  | get | 
 
First vertex index, which is the lower of the three.  
 
 
◆ Vertex2
  
  | 
        
          | int Infohazard.HyperNav.Triangle.Vertex2 |  | get | 
 
Second vertex index, which is the middle of the three.  
 
 
◆ Vertex3
  
  | 
        
          | int Infohazard.HyperNav.Triangle.Vertex3 |  | get | 
 
Third vertex index, which is the larger of the three.  
 
 
The documentation for this struct was generated from the following file:
- Runtime/Utility/Triangle.cs