gfm v6.2.3 (2016-12-23T00:28:54Z)
Home
Dub
Repo
Ray
gfm
math
shapes
A Ray ir a point + a direction.
struct
Ray (
T
int
N
) {
alias
point_t
=
Vector
!(
T
,
N
)
;
nothrow
point_t
orig
;
nothrow
point_t
dir
;
point_t
progress
(T t);
static if
(
N == 3 && isFloatingPoint!T
)
bool
intersect
(Triangle!(T, 3) triangle, T t, T u, T v);
}
Members
Aliases
point_t
alias
point_t
=
Vector
!(
T
,
N
)
Undocumented in source.
Functions
intersect
bool
intersect
(Triangle!(T, 3) triangle, T t, T u, T v)
Ray vs triangle intersection.
progress
point_t
progress
(T t)
Variables
dir
point_t
dir
;
Undocumented in source.
orig
point_t
orig
;
Undocumented in source.
Meta
Source
See Implementation
gfm
math
shapes
aliases
DimensionType
planed
planef
ray2d
ray2f
ray3d
ray3f
seg2d
seg2f
seg2i
seg3d
seg3f
seg3i
sphere2d
sphere2f
sphere3d
sphere3f
triangle2d
triangle2f
triangle3d
triangle3f
enums
isFrustum
isPlane
isRay
isRay2D
isRay3D
isSegment
isSegment2D
isSegment3D
isSphere
isSphere2D
isSphere3D
isTriangle
isTriangle2D
isTriangle3D
structs
Frustum
Plane
Ray
Segment
Sphere
Triangle
A Ray ir a point + a direction.