descore v1.1.0 (2015-01-15T16:11:38Z)
Dub
Repo
Triangle
des
math
linear
triangle
struct
Triangle (
T
)
if
(
isFloatingPoint
!
T
) {
alias
vectype
=
Vector3
!
T
;
vectype
[
3
]
pnt
;
this
(vectype P0, vectype P1, vectype P2);
vectype
perp
[@property getter];
vectype
norm
[@property getter];
T
area
[@property getter];
vectype
center
[@property getter];
auto
tr
(Matrix!(4, 4, X) mtr);
Ray
!(
T
)[
3
]
toRays
();
auto
altitude
(vectype pp);
auto
project
(Ray!F seg);
auto
intersect
(Ray!F seg);
}
Constructors
this
this
(vectype P0, vectype P1, vectype P2)
Members
Aliases
vectype
alias
vectype
=
Vector3
!
T
Functions
altitude
auto
altitude
(vectype pp)
intersect
auto
intersect
(Ray!F seg)
project
auto
project
(Ray!F seg)
toRays
Ray
!(
T
)[
3
]
toRays
()
tr
auto
tr
(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