1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Ipelib: Ipe Geometry</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.4 -->
7
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="functions.html">Class Members</a></div>
8
<h1>Ipe Geometry</h1>Geometric primitives for Ipe.
9
<a href="#_details">More...</a><h2>Classes</h2>
11
<li>class <a class="el" href="class_ipe_angle.html">IpeAngle</a>
12
<dl class="el"><dd class="mdescRight">A double that's an angle. </em> <a href="class_ipe_angle.html#_details">More...</a><em><br><br></dl><li>class <a class="el" href="class_ipe_vector.html">IpeVector</a>
13
<dl class="el"><dd class="mdescRight">Two-dimensional vector. </em> <a href="class_ipe_vector.html#_details">More...</a><em><br><br></dl><li>class <a class="el" href="class_ipe_rect.html">IpeRect</a>
14
<dl class="el"><dd class="mdescRight">Axis-parallel rectangle (which can be empty). </em> <a href="class_ipe_rect.html#_details">More...</a><em><br><br></dl><li>class <a class="el" href="class_ipe_line.html">IpeLine</a>
15
<dl class="el"><dd class="mdescRight">A directed line. </em> <a href="class_ipe_line.html#_details">More...</a><em><br><br></dl><li>class <a class="el" href="class_ipe_segment.html">IpeSegment</a>
16
<dl class="el"><dd class="mdescRight">A directed line segment. </em> <a href="class_ipe_segment.html#_details">More...</a><em><br><br></dl><li>class <a class="el" href="class_ipe_linear.html">IpeLinear</a>
17
<dl class="el"><dd class="mdescRight">Linear transformation in the plane (2x2 matrix). </em> <a href="class_ipe_linear.html#_details">More...</a><em><br><br></dl><li>class <a class="el" href="class_ipe_matrix.html">IpeMatrix</a>
18
<dl class="el"><dd class="mdescRight">Homogeneous transformation in the plane. </em> <a href="class_ipe_matrix.html#_details">More...</a><em><br><br></dl><li>class <a class="el" href="class_ipe_bezier.html">IpeBezier</a>
19
<dl class="el"><dd class="mdescRight">A cubic Bezier spline. </em> <a href="class_ipe_bezier.html#_details">More...</a><em><br><br></dl><li>class <a class="el" href="class_ipe_arc.html">IpeArc</a>
20
<dl class="el"><dd class="mdescRight">An arc of an ellipse. </em> <a href="class_ipe_arc.html#_details">More...</a><em><br><br></dl></ul>
23
<li>#define <a class="el" href="group__geo.html#a4">IpePi</a> 3.1415926535897932385
24
<li>#define <a class="el" href="group__geo.html#a5">IpeTwoPi</a> 6.2831853071795862
25
<li>#define <a class="el" href="group__geo.html#a6">IpeHalfPi</a> 1.5707963267948966
29
<li>typedef double <a class="el" href="group__geo.html#a3">IpeScalar</a>
33
<li>template<class T> T <a class="el" href="group__geo.html#a0">IpeMax</a> (const T &lhs, const T &rhs)
34
<li>template<class T> T <a class="el" href="group__geo.html#a1">IpeMin</a> (const T &lhs, const T &rhs)
35
<li>double <a class="el" href="group__geo.html#a2">IpeAbs</a> (double val)
37
<hr><a name="_details"></a><h2>Detailed Description</h2>
38
Geometric primitives for Ipe.
40
The IpeGeo module provides a few classes for constant-size geometric primitives, such as vector, axis-aligned rectangles, lines, rays, line segments, etc. <hr><h2>Define Documentation</h2>
41
<a class="anchor" name="a4" doxytag="ipegeo.h::IpePi" ></a><p>
42
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
45
<table cellpadding="0" cellspacing="0" border="0">
47
<td class="md" nowrap valign="top"> double IpePi 3.1415926535897932385
52
<table cellspacing=5 cellpadding=0 border=0>
60
The constant pi. </td>
63
<a class="anchor" name="a5" doxytag="ipegeo.h::IpeTwoPi" ></a><p>
64
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
67
<table cellpadding="0" cellspacing="0" border="0">
69
<td class="md" nowrap valign="top"> double IpeTwoPi 6.2831853071795862
74
<table cellspacing=5 cellpadding=0 border=0>
82
The constant 2 * pi. </td>
85
<a class="anchor" name="a6" doxytag="ipegeo.h::IpeHalfPi" ></a><p>
86
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
89
<table cellpadding="0" cellspacing="0" border="0">
91
<td class="md" nowrap valign="top"> double IpeHalfPi 1.5707963267948966
96
<table cellspacing=5 cellpadding=0 border=0>
104
The constant pi / 2. </td>
107
<hr><h2>Typedef Documentation</h2>
108
<a class="anchor" name="a3" doxytag="ipegeo.h::IpeScalar" ></a><p>
109
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
112
<table cellpadding="0" cellspacing="0" border="0">
114
<td class="md" nowrap valign="top"> typedef double <a class="el" href="ipegeo_8h.html#a3">IpeScalar</a>
119
<table cellspacing=5 cellpadding=0 border=0>
127
Type of coordinates in IpeVectors. </td>
130
<hr><h2>Function Documentation</h2>
131
<a class="anchor" name="a0" doxytag="ipegeo.h::IpeMax" ></a><p>
132
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
135
<table cellpadding="0" cellspacing="0" border="0">
137
<td class="md" colspan="4">
138
template<class T> </td>
141
<td class="md" nowrap valign="top"> T IpeMax </td>
142
<td class="md" valign="top">( </td>
143
<td class="md" nowrap valign="top">const T & </td>
144
<td class="mdname" nowrap> <em>lhs</em>, </td>
149
<td class="md" nowrap>const T & </td>
150
<td class="mdname" nowrap> <em>rhs</em></td>
154
<td class="md">) </td>
155
<td class="md" colspan="2"><code> [inline]</code></td>
162
<table cellspacing=5 cellpadding=0 border=0>
170
Maximum of two values. </td>
173
<a class="anchor" name="a1" doxytag="ipegeo.h::IpeMin" ></a><p>
174
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
177
<table cellpadding="0" cellspacing="0" border="0">
179
<td class="md" colspan="4">
180
template<class T> </td>
183
<td class="md" nowrap valign="top"> T IpeMin </td>
184
<td class="md" valign="top">( </td>
185
<td class="md" nowrap valign="top">const T & </td>
186
<td class="mdname" nowrap> <em>lhs</em>, </td>
191
<td class="md" nowrap>const T & </td>
192
<td class="mdname" nowrap> <em>rhs</em></td>
196
<td class="md">) </td>
197
<td class="md" colspan="2"><code> [inline]</code></td>
204
<table cellspacing=5 cellpadding=0 border=0>
212
Minimum of two values. </td>
215
<a class="anchor" name="a2" doxytag="ipegeo.h::IpeAbs" ></a><p>
216
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
219
<table cellpadding="0" cellspacing="0" border="0">
221
<td class="md" nowrap valign="top"> double IpeAbs </td>
222
<td class="md" valign="top">( </td>
223
<td class="md" nowrap valign="top">double </td>
224
<td class="mdname1" valign="top" nowrap> <em>val</em> </td>
225
<td class="md" valign="top"> ) </td>
226
<td class="md" nowrap><code> [inline]</code></td>
233
<table cellspacing=5 cellpadding=0 border=0>
241
Absolute value. </td>