C# Class TechEngine.Engine.Triangle

Show file Open project: DotTech/3D-software-renderer Class Usage Examples

Public Methods

Method 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 method

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

SurfaceNormal() public method

Calculate the normal for this triangle
public SurfaceNormal ( ) : Vector3
return Vector3

Triangle() public method

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