C# Class Nexus.Objects3D.Triangle3D

Datei anzeigen Open project: tgjones/nexus

Public Properties

Property Type Description
A Point3D
B Point3D
C Point3D

Public Methods

Method Description
Area2D ( float x1, float y1, float x2, float y2, float x3, float y3 ) : float
Barycentric ( Point3D p ) : Vector3D

Compute barycentric coordinates (u, v, w) for point p with respect to this triangle. Real Time Collision Detection, p47.

Triangle3D ( Point3D a, Point3D b, Point3D c )

Method Details

Area2D() public static method

public static Area2D ( float x1, float y1, float x2, float y2, float x3, float y3 ) : float
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float
return float

Barycentric() public method

Compute barycentric coordinates (u, v, w) for point p with respect to this triangle. Real Time Collision Detection, p47.
public Barycentric ( Point3D p ) : Vector3D
p Point3D
return Vector3D

Triangle3D() public method

public Triangle3D ( Point3D a, Point3D b, Point3D c )
a Point3D
b Point3D
c Point3D

Property Details

A public_oe property

public Point3D A
return Point3D

B public_oe property

public Point3D B
return Point3D

C public_oe property

public Point3D C
return Point3D