C# 클래스 ManicDigger.Collisions.Intersection

파일 보기 프로젝트 열기: GlennMR/800Craft-Client

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

BoxTriangles() 공개 정적인 메소드

public static BoxTriangles ( Vector3 a, Vector3 b ) : IEnumerable
a Vector3
b Vector3
리턴 IEnumerable

BoxTrianglesAndSides() 공개 정적인 메소드

public static BoxTrianglesAndSides ( Vector3 a, Vector3 b ) : IEnumerable
a Vector3
b Vector3
리턴 IEnumerable

CheckLineBox() 공개 정적인 메소드

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
리턴 bool

CheckLineBox() 공개 정적인 메소드

public static CheckLineBox ( Vector3 B1, Vector3 B2, Vector3 L1, Vector3 L2, Vector3 &Hit ) : bool
B1 Vector3
B2 Vector3
L1 Vector3
L2 Vector3
Hit Vector3
리턴 bool

CheckLineBoxExact() 공개 정적인 메소드

public static CheckLineBoxExact ( Line3D line, Box3D box ) : BlockPosSide?
line Line3D
box Box3D
리턴 BlockPosSide?

RayTriangle() 공개 정적인 메소드

public static RayTriangle ( Line3D R, Triangle3D T, Vector3 &I ) : int
R Line3D
T Triangle3D
I Vector3
리턴 int