The corners
(
x
1
,
y
1
)
and
(
x
2
,
y
2
)
and
(
x
3
,
y
3
)
of a triangle.
If
(
x
3
,
y
3
)
=
(
0
,
0
)
The area of the triangle
=
1
2
|
x
1
y
1
x
2
y
2
|
otherwise, area
=
1
2
|
x
1
y
1
1
x
2
y
2
1
x
3
y
3
1
|
the area of the parallelogram:
|
x
1
y
1
x
2
y
2
|