gfm v2.0.11 (2015-02-12T17:50:21Z)
Home
Dub
Repo
Triangle
gfm
math
shapes
A Triangle is 3 points.
struct
Triangle (
T
int
N
) {
alias
point_t
=
Vector
!(
T
,
N
)
;
point_t
a
;
point_t
b
;
point_t
c
;
static if
(
N == 2
)
T
area
();
static if
(
N == 2
)
T
signedArea
();
static if
(
N == 3
)
Vector
!(
T
,
3
)
computeNormal
();
}
Members
Aliases
point_t
alias
point_t
=
Vector
!(
T
,
N
)
Undocumented in source.
Functions
area
T
area
()
computeNormal
Vector
!(
T
,
3
)
computeNormal
()
signedArea
T
signedArea
()
Variables
a
point_t
a
;
b
point_t
b
;
c
point_t
c
;
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 Triangle is 3 points.