Interface IGLTriangle
- Namespace
- SearchAThing.OpenGL.Core
- Assembly
- netcore-opengl-core.dll
Primitive for GL_TRIANGLES opengl element.
public interface IGLTriangle : IGLPrimitive, IGLVertexManagerObject, INotifyPropertyChanged
- Inherited Members
- Extension Methods
Properties
Plane
Compute default triangle plane such as:
- origin = V1
- normal = Normalize((V2-V1) x (V3-V1))
Matrix4x4 Plane { get; }
Property Value
- See Also
PlaneNZ
Compute triangle plane such as:
- origin = V1
- basez is concordant to owner figure ComputeNormal delegate.
Matrix4x4 PlaneNZ { get; }
Property Value
V1
Triangle first vertex.
GLVertex V1 { get; set; }
Property Value
V2
Triangle second vertex.
GLVertex V2 { get; set; }
Property Value
V3
Triangle third vertex.
GLVertex V3 { get; set; }
Property Value
Methods
Contains(in Vector3)
States if given point is contained in the triangle, borders included.
bool Contains(in Vector3 point)
Parameters
point
Vector3Point to test.