liberty-engine v0.0.14-beta.2 (2018-07-02T09:50:23Z)
Dub
Repo
Triangle.area
liberty
math
shapes
Triangle
Returns area of a 2D triangle.
struct
Triangle
(T, int N)
pure nothrow const @
safe
@
nogc
static if
(
N == 2
)
T
area
(
)
if
(
N
== 2 ||
N
== 3
)
Meta
Source
See Implementation
liberty
math
shapes
Triangle
aliases
PointType
functions
area
computeNormal
signedArea
variables
a
b
c
Returns area of a 2D triangle.