C# Class TechEngine.Engine.Triangle

Afficher le fichier Open project: DotTech/3D-software-renderer Class Usage Examples

Méthodes publiques

Méthode Description
CalculateFillColor ( int color ) : void

Darkens or lightens the fillcolor based on the intesify values of the vertices

SurfaceNormal ( ) : Vector3

Calculate the normal for this triangle

Triangle ( Vertex a, Vertex b, Vertex c ) : System

Method Details

CalculateFillColor() public méthode

Darkens or lightens the fillcolor based on the intesify values of the vertices
public CalculateFillColor ( int color ) : void
color int
Résultat void

SurfaceNormal() public méthode

Calculate the normal for this triangle
public SurfaceNormal ( ) : Vector3
Résultat Vector3

Triangle() public méthode

public Triangle ( Vertex a, Vertex b, Vertex c ) : System
a Vertex
b Vertex
c Vertex
Résultat System