C# Class ManicDigger.Collisions.Intersection

Afficher le fichier Open project: GlennMR/800Craft-Client

Méthodes publiques

Méthode Description
BoxTriangles ( Vector3 a, Vector3 b ) : IEnumerable
BoxTrianglesAndSides ( Vector3 a, Vector3 b ) : IEnumerable
CheckLineBox ( Box3D box, Line3D line, Vector3 &hit ) : bool

Warning: randomly returns incorrect hit position (back side of box).

CheckLineBox ( Vector3 B1, Vector3 B2, Vector3 L1, Vector3 L2, Vector3 &Hit ) : bool
CheckLineBoxExact ( Line3D line, Box3D box ) : BlockPosSide?
RayTriangle ( Line3D R, Triangle3D T, Vector3 &I ) : int

Private Methods

Méthode Description
GetIntersection ( float fDst1, float fDst2, Vector3 P1, Vector3 P2, Vector3 &Hit ) : bool
InBox ( Vector3 Hit, Vector3 B1, Vector3 B2, int Axis ) : bool
Interpolate ( Vector3 a, Vector3 b, float f ) : Vector3
PointInBox ( Vector3 v, Box3D node ) : bool
dot ( Vector3 u, Vector3 v ) : float

Method Details

BoxTriangles() public static méthode

public static BoxTriangles ( Vector3 a, Vector3 b ) : IEnumerable
a Vector3
b Vector3
Résultat IEnumerable

BoxTrianglesAndSides() public static méthode

public static BoxTrianglesAndSides ( Vector3 a, Vector3 b ) : IEnumerable
a Vector3
b Vector3
Résultat IEnumerable

CheckLineBox() public static méthode

Warning: randomly returns incorrect hit position (back side of box).
public static CheckLineBox ( Box3D box, Line3D line, Vector3 &hit ) : bool
box Box3D
line Line3D
hit Vector3
Résultat bool

CheckLineBox() public static méthode

public static CheckLineBox ( Vector3 B1, Vector3 B2, Vector3 L1, Vector3 L2, Vector3 &Hit ) : bool
B1 Vector3
B2 Vector3
L1 Vector3
L2 Vector3
Hit Vector3
Résultat bool

CheckLineBoxExact() public static méthode

public static CheckLineBoxExact ( Line3D line, Box3D box ) : BlockPosSide?
line Line3D
box Box3D
Résultat BlockPosSide?

RayTriangle() public static méthode

public static RayTriangle ( Line3D R, Triangle3D T, Vector3 &I ) : int
R Line3D
T Triangle3D
I Vector3
Résultat int