gfm v1.1.3 (2014-06-18T21:14:08Z)
Home
Dub
Repo
Ray
gfm
math
shapes
A Ray ir a point + a direction.
struct
Ray (
T
size_t
N
) {
alias
point_t
=
Vector
!(
T
,
N
)
;
nothrow
point_t
orig
;
nothrow
point_t
dir
;
point_t
progress
(T t);
static if
(
N == 3u
)
bool
intersect
(Triangle!(T, 3u) 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, 3u) 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
planed
planef
ray2d
ray2f
ray3d
ray3f
seg2d
seg2f
seg3d
seg3f
sphere2d
sphere2f
sphere3d
sphere3f
triangle2d
triangle2f
triangle3d
triangle3f
structs
Frustum
Plane
Ray
Segment
Sphere
Triangle
A Ray ir a point + a direction.