gwnavruntime/math/closedcontour.h Source File

closedcontour.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #pragma once
8 
11 
12 namespace Kaim
13 {
14 
15 class Vec2f;
16 class Vec2i;
17 
18 namespace ClosedContour
19 {
20 
23 bool DoesContain2f(const Vec2f& P, const Vec2f* points, KyUInt32 count, bool* OnBorder = nullptr);
24 
27 bool DoesContain2i(const Vec2i& p, const Vec2i* points, KyUInt32 count, bool* OnBorder = nullptr);
28 
30 PolygonWinding ComputeWinding2i(const Vec2i* points, KyUInt32 count);
31 
33 PolygonWinding ComputeWinding2f(const Vec2f* points, KyUInt32 count);
34 
36 inline PolygonWinding ComputeWinding2i(const KyArrayPOD<Vec2i>& points) { return ComputeWinding2i(points.GetDataPtr(), points.GetCount()); }
37 
39 bool IsTwisted(const Vec2f* points, KyUInt32 count);
40 
41 }
42 
43 }
44 
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17