| GlsMap Toolkit 1.10.2

Public Member Functions | Public Attributes | List of all members
disti::DNCUtil::Tri Struct Reference

`#include <dnc_util.h>`

## Public Member Functions
double | GetArea (void) const
bool | PointTest (const VPFUtil::Coord2DLong &p) const

## Public Attributes
VPFUtil::Coord2DLong | p1
VPFUtil::Coord2DLong | p2
VPFUtil::Coord2DLong | p3

## Detailed Description

one triangle of an area ( CCW winding )

## Member Function Documentation

## ◆ GetArea()

double disti::DNCUtil::Tri::GetArea | ( | void |  | ) | const
| inline

Get the area of the triangle

Returns
  area of the triangle

## ◆ PointTest()

bool disti::DNCUtil::Tri::PointTest | ( | const VPFUtil::Coord2DLong & | p | ) | const
| inline

Determine if the given point falls within the triangle. NOTE: algorithm requires that triangle is wound CCW

Parameters

  p | point in question

Returns
  true if point falls within triangle else false

## Member Data Documentation

## ◆ p1

VPFUtil::Coord2DLong disti::DNCUtil::Tri::p1

first point of tri

## ◆ p2

VPFUtil::Coord2DLong disti::DNCUtil::Tri::p2

second point of tri

## ◆ p3

VPFUtil::Coord2DLong disti::DNCUtil::Tri::p3

third point of tri

The documentation for this struct was generated from the following file:

- dnc_util.h