descore ~master (2015-04-21T20:17:28Z)
Dub
Repo
Triangle
des
math
linear
triangle
struct
Triangle (
T
)
if
(
isFloatingPoint
!
T
) {
alias
vectype
=
Vector3
!
T
;
vectype
[
3
]
pnt
;
this
(
in
vectype
P0
,
in
vectype
P1
,
in
vectype
P2
)
;
vectype
perp
[@property getter];
vectype
norm
[@property getter];
T
area
[@property getter];
vectype
center
[@property getter];
auto
tr
(
in
Matrix
!(
4
,
4
,
X
)
mtr
)
;
Ray
!(
T
)[
3
]
toRays
()
;
auto
altitude
(
in
vectype
pp
)
;
auto
project
(
in
Ray
!
F
seg
)
;
auto
intersect
(
in
Ray
!
F
seg
)
;
}
Constructors
this
this
(
in
vectype
P0
,
in
vectype
P1
,
in
vectype
P2
)
Members
Aliases
vectype
alias
vectype
=
Vector3
!
T
Functions
altitude
auto
altitude
(
in
vectype
pp
)
intersect
auto
intersect
(
in
Ray
!
F
seg
)
project
auto
project
(
in
Ray
!
F
seg
)
toRays
Ray
!(
T
)[
3
]
toRays
()
tr
auto
tr
(
in
Matrix
!(
4
,
4
,
X
)
mtr
)
affine transform
Properties
area
T
area
[@property getter]
center
vectype
center
[@property getter]
norm
vectype
norm
[@property getter]
perp
vectype
perp
[@property getter]
Variables
pnt
vectype
[
3
]
pnt
;
Meta
Source
See Implementation
des
math
linear
triangle
aliases
dTriangle
fTriangle
rTriangle
structs
Triangle