Cinder
0.8.6
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
include
cinder
ConvexHull.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2013, The Cinder Project (http://libcinder.org)
3
All rights reserved.
4
5
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
6
the following conditions are met:
7
8
* Redistributions of source code must retain the above copyright notice, this list of conditions and
9
the following disclaimer.
10
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
11
the following disclaimer in the documentation and/or other materials provided with the distribution.
12
13
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
14
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
15
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
16
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
17
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
18
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
19
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
20
POSSIBILITY OF SUCH DAMAGE.
21
*/
22
23
#pragma once
24
25
#include "
cinder/Cinder.h
"
26
#include "
cinder/PolyLine.h
"
27
#include "
cinder/Shape2d.h
"
28
29
#include <vector>
30
31
namespace
cinder {
32
33
PolyLine2f
calcConvexHull
(
const
std::vector<Vec2f> &
points
);
34
PolyLine2f
calcConvexHull
(
const
Vec2f
*
points
,
size_t
numPoints );
35
PolyLine2f
calcConvexHull
(
const
Shape2d &shape );
36
PolyLine2f
calcConvexHull
(
const
Path2d &path );
37
PolyLine2f
calcConvexHull
(
const
PolyLine2f
&polyLine );
38
39
}
// namespace cinder
Cinder.h
cinder::Vec2f
Vec2< float > Vec2f
Definition:
Vector.h:1314
cinder::PolyLine2f
PolyLine< Vec2f > PolyLine2f
Definition:
PolyLine.h:77
PolyLine.h
Shape2d.h
cinder::calcConvexHull
PolyLine2f calcConvexHull(const std::vector< Vec2f > &points)
Definition:
ConvexHull.cpp:94
points
GLsizei const GLfloat * points
Definition:
GLee.h:6298
Generated by
1.8.7