~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to devel-docs/libgimpmath/tmpl/gimpmath.sgml

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- ##### SECTION Title ##### -->
 
2
GimpMath
 
3
 
 
4
<!-- ##### SECTION Short_Description ##### -->
 
5
Mathematical definitions and macros.
 
6
 
 
7
<!-- ##### SECTION Long_Description ##### -->
 
8
<para>
 
9
Mathematical definitions and macros. These macros should be used
 
10
rather than the ones from math.h for enhanced portability.
 
11
</para>
 
12
 
 
13
<!-- ##### SECTION See_Also ##### -->
 
14
<para>
 
15
 
 
16
</para>
 
17
 
 
18
<!-- ##### MACRO RINT ##### -->
 
19
<para>
 
20
This macro rounds its argument @x to an integer value in floating point
 
21
format.
 
22
</para>
 
23
 
 
24
@x: the value to be rounded.
 
25
 
 
26
 
 
27
<!-- ##### MACRO ROUND ##### -->
 
28
<para>
 
29
This macro rounds its argument @x to the nearest integer.
 
30
</para>
 
31
 
 
32
@x: the value to be rounded.
 
33
 
 
34
 
 
35
<!-- ##### MACRO SQR ##### -->
 
36
<para>
 
37
This macro squares its argument @x.
 
38
</para>
 
39
 
 
40
@x: the value to be squared.
 
41
 
 
42
 
 
43
<!-- ##### MACRO MAX255 ##### -->
 
44
<para>
 
45
This macro limits it argument @a, an (0-511) int, to 255.
 
46
</para>
 
47
 
 
48
@a: the value to be limited.
 
49
 
 
50
 
 
51
<!-- ##### MACRO CLAMP0255 ##### -->
 
52
<para>
 
53
This macro clamps its argument @a, an int32-range int, between 0 and
 
54
255 inclusive.
 
55
</para>
 
56
 
 
57
@a: the value to be clamped.
 
58
 
 
59
 
 
60
<!-- ##### MACRO gimp_deg_to_rad ##### -->
 
61
<para>
 
62
This macro converts its argument @angle from degree to radian.
 
63
</para>
 
64
 
 
65
@angle: the angle to be converted.
 
66
 
 
67
 
 
68
<!-- ##### MACRO gimp_rad_to_deg ##### -->
 
69
<para>
 
70
This macro converts its argument @angle from radian to degree.
 
71
</para>
 
72
 
 
73
@angle: the angle to be converted.
 
74
 
 
75