C# Class IrrlichtNETCP.Triangle3D

Datei anzeigen Open project: Paulus/irrlichtnetcp Class Usage Examples

Public Properties

Property Type Description
PointA IrrlichtNETCP.Vector3D

Public Methods

Method Description
Equals ( object obj ) : bool
FromUnmanaged ( float un ) : Triangle3D
GetHashCode ( ) : int
GetIntersectionOfPlaneWithLine ( IrrlichtNETCP.Vector3D linePoint, IrrlichtNETCP.Vector3D lineVect, IrrlichtNETCP.Vector3D &intersection ) : bool

Calculates the intersection between a 3d line and the plane the triangle is on.

GetIntersectionWithLimitedLine ( IrrlichtNETCP.Line3D line, IrrlichtNETCP.Vector3D &outIntersection ) : bool

Returns an intersection with a 3d line.

IsOnSameSide ( IrrlichtNETCP.Vector3D p1, IrrlichtNETCP.Vector3D p2, IrrlichtNETCP.Vector3D a, IrrlichtNETCP.Vector3D b ) : bool
ToString ( ) : string
ToUnmanaged ( ) : float[]
Triangle3D ( IrrlichtNETCP.Vector3D A, IrrlichtNETCP.Vector3D B, IrrlichtNETCP.Vector3D C ) : System
Triangle3D ( float AX, float AY, float AZ, float BX, float BY, float BZ, float CX, float CY, float CZ ) : System

Private Methods

Method Description
GetIntersectionWithLine ( IrrlichtNETCP.Vector3D linePoint, IrrlichtNETCP.Vector3D lineVect, IrrlichtNETCP.Vector3D &outIntersection ) : bool

Returns an intersection with a 3d line. Please note that also points are returned as intersection, which are on the line, but not between the start and end point of the line. If you want the returned point be between start and end, please use getIntersectionWithLimitedLine().

IsPointInside ( IrrlichtNETCP.Vector3D p ) : bool

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FromUnmanaged() public static method

public static FromUnmanaged ( float un ) : Triangle3D
un float
return Triangle3D

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetIntersectionOfPlaneWithLine() public method

Calculates the intersection between a 3d line and the plane the triangle is on.
public GetIntersectionOfPlaneWithLine ( IrrlichtNETCP.Vector3D linePoint, IrrlichtNETCP.Vector3D lineVect, IrrlichtNETCP.Vector3D &intersection ) : bool
linePoint IrrlichtNETCP.Vector3D Vector of the line to intersect with
lineVect IrrlichtNETCP.Vector3D Point of the line to intersect with.
intersection IrrlichtNETCP.Vector3D Place to store the intersection point, if there is one.
return bool

GetIntersectionWithLimitedLine() public method

Returns an intersection with a 3d line.
public GetIntersectionWithLimitedLine ( IrrlichtNETCP.Line3D line, IrrlichtNETCP.Vector3D &outIntersection ) : bool
line IrrlichtNETCP.Line3D Line to intersect with.
outIntersection IrrlichtNETCP.Vector3D Place to store the intersection point, if there is one.
return bool

IsOnSameSide() public method

public IsOnSameSide ( IrrlichtNETCP.Vector3D p1, IrrlichtNETCP.Vector3D p2, IrrlichtNETCP.Vector3D a, IrrlichtNETCP.Vector3D b ) : bool
p1 IrrlichtNETCP.Vector3D
p2 IrrlichtNETCP.Vector3D
a IrrlichtNETCP.Vector3D
b IrrlichtNETCP.Vector3D
return bool

ToString() public method

public ToString ( ) : string
return string

ToUnmanaged() public method

public ToUnmanaged ( ) : float[]
return float[]

Triangle3D() public method

public Triangle3D ( IrrlichtNETCP.Vector3D A, IrrlichtNETCP.Vector3D B, IrrlichtNETCP.Vector3D C ) : System
A IrrlichtNETCP.Vector3D
B IrrlichtNETCP.Vector3D
C IrrlichtNETCP.Vector3D
return System

Triangle3D() public method

public Triangle3D ( float AX, float AY, float AZ, float BX, float BY, float BZ, float CX, float CY, float CZ ) : System
AX float
AY float
AZ float
BX float
BY float
BZ float
CX float
CY float
CZ float
return System

Property Details

PointA public_oe property

public Vector3D,IrrlichtNETCP PointA
return IrrlichtNETCP.Vector3D