Public Member Functions | |
PtBoundingBoxRts () | |
PtBoundingBoxRts (Vertex3f minVertex, Vertex3f maxVertex) | |
void | GenerateBoundingBox () |
bool | Intersect (PtBoundingBoxRt bb) |
bool | Overlaps (PtBoundingBoxRts bb) |
bool | Inside (Vertex3f v) |
void | ShowBoundingBox () |
bool | Intersect (int x, int y, PtRay ray) |
bool | Intersect (int x, int y, PtRay ray, Vertex3f interSectionPoint) |
bool | Intersect (int x, int y, PtRay ray, ref IntersectionInfo info) |
bool | Intersect (int x, int y, ref PtRay ray, ref Vertex3f nearInterSectionPoint, ref Vertex3f farInterSectionPoint) |
bool | Intersect (int x, int y, PtRay ray, ref float nearIntersectionDistance, ref float farIntersectionDistance) |
bool | Intersect (PtRtTriangle tri) |
bool | Intersect (Vertex3f a_V0, Vertex3f a_V1, Vertex3f a_V2) |
Properties | |
Vertex3f | MaxVertex [get, set] |
Vertex3f | MinVertex [get, set] |
Vertex3f | Size [get] |
Vertex3f | Center [get] |
Powertek.Rt.PtBoundingBoxRts.PtBoundingBoxRts | ( | ) |
Powertek.Rt.PtBoundingBoxRts.PtBoundingBoxRts | ( | Vertex3f | minVertex, | |
Vertex3f | maxVertex | |||
) |
void Powertek.Rt.PtBoundingBoxRts.GenerateBoundingBox | ( | ) |
GenerateBoundingBox, we need to set min/max vertex to init the bb.
bool Powertek.Rt.PtBoundingBoxRts.Inside | ( | Vertex3f | v | ) |
Check if a vertex is inside BB.
v |
bool Powertek.Rt.PtBoundingBoxRts.Intersect | ( | Vertex3f | a_V0, | |
Vertex3f | a_V1, | |||
Vertex3f | a_V2 | |||
) |
Intersection with Triangle.
a_V0 | ||
a_V1 | ||
a_V2 |
bool Powertek.Rt.PtBoundingBoxRts.Intersect | ( | PtRtTriangle | tri | ) |
Intersection with Triangle.
tri |
bool Powertek.Rt.PtBoundingBoxRts.Intersect | ( | int | x, | |
int | y, | |||
PtRay | ray, | |||
ref float | nearIntersectionDistance, | |||
ref float | farIntersectionDistance | |||
) |
Intersect with Ray, this may be the fastest bb intersection.
x | ||
y | ||
ray | ||
nearIntersectionDistance | ||
farIntersectionDistance |
bool Powertek.Rt.PtBoundingBoxRts.Intersect | ( | int | x, | |
int | y, | |||
ref PtRay | ray, | |||
ref Vertex3f | nearInterSectionPoint, | |||
ref Vertex3f | farInterSectionPoint | |||
) |
Intersect with Ray.
x | ||
y | ||
ray | ||
nearInterSectionPoint | ||
farInterSectionPoint |
bool Powertek.Rt.PtBoundingBoxRts.Intersect | ( | int | x, | |
int | y, | |||
PtRay | ray, | |||
ref IntersectionInfo | info | |||
) |
Intersect with Ray.
x | ||
y | ||
ray | ||
info |
bool Powertek.Rt.PtBoundingBoxRts.Intersect | ( | int | x, | |
int | y, | |||
PtRay | ray, | |||
Vertex3f | interSectionPoint | |||
) |
Intersect with Ray.
x | ||
y | ||
ray | ||
interSectionPoint |
bool Powertek.Rt.PtBoundingBoxRts.Intersect | ( | int | x, | |
int | y, | |||
PtRay | ray | |||
) |
Intersect with Ray.
x | ||
y | ||
ray |
bool Powertek.Rt.PtBoundingBoxRts.Intersect | ( | PtBoundingBoxRt | bb | ) |
Check Intersection with another BB.
bb |
bool Powertek.Rt.PtBoundingBoxRts.Overlaps | ( | PtBoundingBoxRts | bb | ) |
Check Overlapping with another BB.
bb |
void Powertek.Rt.PtBoundingBoxRts.ShowBoundingBox | ( | ) |
Render BB.
Vertex3f Powertek.Rt.PtBoundingBoxRts.Center [get] |
return Center Vertex
Vertex3f Powertek.Rt.PtBoundingBoxRts.MaxVertex [get, set] |
Return MaxVertex.
Vertex3f Powertek.Rt.PtBoundingBoxRts.MinVertex [get, set] |
return MinVertex
Vertex3f Powertek.Rt.PtBoundingBoxRts.Size [get] |
Size.