C# Class Vector.Math.Triangle

Show file Open project: sinclairzx81/vector-cs

Public Properties

Property Type Description
vert0 Vector3
vert1 Vector3
vert2 Vector3

Public Methods

Method Description
Intersect ( Plane plane ) : bool

Test for the intersection of this plane with this Triangle.

Intersect ( Plane plane, Vector3 vert0, Vector3 vert1, Vector3 vert2 ) : bool

Test for the intersection of this plane with this Triangle.

Intersect ( Ray ray ) : bool

Tests for a intersection bewteen this Ray and this Triangle.

Intersect ( Ray ray, Vector3 vert0, Vector3 vert1, Vector3 vert2, float &t ) : bool

Tests for a intersection between this Ray and this Triangle.

Split ( Plane plane, Vector3 vert0, Vector3 vert1, Vector3 vert2 ) : Vector.Math.Triangle[]

Splits a triangle by a plane. If no split is possible, then return original triangle.

Triangle ( Vector3 vert0, Vector3 vert1, Vector3 vert2 ) : System.Runtime.InteropServices

Method Details

Intersect() public method

Test for the intersection of this plane with this Triangle.
public Intersect ( Plane plane ) : bool
plane Plane
return bool

Intersect() public static method

Test for the intersection of this plane with this Triangle.
public static Intersect ( Plane plane, Vector3 vert0, Vector3 vert1, Vector3 vert2 ) : bool
plane Plane
vert0 Vector3
vert1 Vector3
vert2 Vector3
return bool

Intersect() public method

Tests for a intersection bewteen this Ray and this Triangle.
public Intersect ( Ray ray ) : bool
ray Ray
return bool

Intersect() public static method

Tests for a intersection between this Ray and this Triangle.
public static Intersect ( Ray ray, Vector3 vert0, Vector3 vert1, Vector3 vert2, float &t ) : bool
ray Ray
vert0 Vector3
vert1 Vector3
vert2 Vector3
t float
return bool

Split() public static method

Splits a triangle by a plane. If no split is possible, then return original triangle.
public static Split ( Plane plane, Vector3 vert0, Vector3 vert1, Vector3 vert2 ) : Vector.Math.Triangle[]
plane Plane
vert0 Vector3
vert1 Vector3
vert2 Vector3
return Vector.Math.Triangle[]

Triangle() public method

public Triangle ( Vector3 vert0, Vector3 vert1, Vector3 vert2 ) : System.Runtime.InteropServices
vert0 Vector3
vert1 Vector3
vert2 Vector3
return System.Runtime.InteropServices

Property Details

vert0 public property

public Vector3 vert0
return Vector3

vert1 public property

public Vector3 vert1
return Vector3

vert2 public property

public Vector3 vert2
return Vector3