pango 3.1.1-x64-mingw32 → 3.1.2-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (306) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +27 -5
  3. data/ext/pango/depend +2 -2
  4. data/ext/pango/extconf.rb +32 -28
  5. data/ext/pango/pango.def +0 -16
  6. data/ext/pango/rb-pango-attr-list.c +64 -0
  7. data/ext/pango/rb-pango-attribute.c +147 -0
  8. data/ext/pango/rb-pango-context.c +79 -0
  9. data/ext/pango/{rbpangoconversions.h → rb-pango-conversions.h} +4 -6
  10. data/ext/pango/rb-pango-private.h +27 -0
  11. data/ext/pango/rb-pango.c +32 -0
  12. data/ext/pango/rb-pango.h +29 -0
  13. data/extconf.rb +25 -9
  14. data/lib/2.2/pango.so +0 -0
  15. data/lib/2.3/pango.so +0 -0
  16. data/lib/2.4/pango.so +0 -0
  17. data/lib/pango.rb +24 -68
  18. data/lib/pango/cairo-loader.rb +63 -0
  19. data/lib/pango/color.rb +31 -0
  20. data/lib/pango/deprecated.rb +37 -0
  21. data/lib/pango/font-description.rb +29 -0
  22. data/lib/pango/language.rb +29 -0
  23. data/lib/pango/layout.rb +41 -0
  24. data/lib/pango/loader.rb +87 -0
  25. data/lib/pango/markup.rb +31 -0
  26. data/lib/pango/matrix.rb +64 -0
  27. data/lib/pango/rectangle.rb +28 -0
  28. data/lib/pango/version.rb +30 -0
  29. data/test/pango-test-utils.rb +7 -7
  30. data/test/run-test.rb +34 -8
  31. data/test/test-attr-list.rb +28 -0
  32. data/test/test-color.rb +1 -3
  33. data/test/test-context.rb +4 -4
  34. data/test/test-enum.rb +37 -0
  35. data/test/test-font-description.rb +31 -0
  36. data/test/test-language.rb +2 -1
  37. data/test/test-layout.rb +12 -0
  38. data/test/test-markup.rb +30 -0
  39. data/test/test-matrix.rb +131 -5
  40. data/test/test-rectangle.rb +16 -3
  41. data/vendor/local/bin/derb.exe +0 -0
  42. data/vendor/local/bin/genbrk.exe +0 -0
  43. data/vendor/local/bin/genccode.exe +0 -0
  44. data/vendor/local/bin/gencfu.exe +0 -0
  45. data/vendor/local/bin/gencmn.exe +0 -0
  46. data/vendor/local/bin/gencnval.exe +0 -0
  47. data/vendor/local/bin/gendict.exe +0 -0
  48. data/vendor/local/bin/gennorm2.exe +0 -0
  49. data/vendor/local/bin/genrb.exe +0 -0
  50. data/vendor/local/bin/gensprep.exe +0 -0
  51. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  52. data/vendor/local/bin/hb-shape.exe +0 -0
  53. data/vendor/local/bin/hb-view.exe +0 -0
  54. data/vendor/local/bin/icuinfo.exe +0 -0
  55. data/vendor/local/bin/icupkg.exe +0 -0
  56. data/vendor/local/bin/libgraphene-1.0-0.dll +0 -0
  57. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  58. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  59. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  60. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  61. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  62. data/vendor/local/bin/makeconv.exe +0 -0
  63. data/vendor/local/bin/pango-view.exe +0 -0
  64. data/vendor/local/bin/pkgdata.exe +0 -0
  65. data/vendor/local/bin/uconv.exe +0 -0
  66. data/vendor/local/include/graphene-1.0/graphene-box.h +148 -0
  67. data/vendor/local/include/graphene-1.0/graphene-euler.h +140 -0
  68. data/vendor/local/include/graphene-1.0/graphene-frustum.h +93 -0
  69. data/vendor/local/include/graphene-1.0/graphene-gobject.h +119 -0
  70. data/vendor/local/include/graphene-1.0/graphene-macros.h +105 -0
  71. data/vendor/local/include/graphene-1.0/graphene-matrix.h +288 -0
  72. data/vendor/local/include/graphene-1.0/graphene-plane.h +99 -0
  73. data/vendor/local/include/graphene-1.0/graphene-point.h +120 -0
  74. data/vendor/local/include/graphene-1.0/graphene-point3d.h +140 -0
  75. data/vendor/local/include/graphene-1.0/graphene-quad.h +80 -0
  76. data/vendor/local/include/graphene-1.0/graphene-quaternion.h +136 -0
  77. data/vendor/local/include/graphene-1.0/graphene-ray.h +98 -0
  78. data/vendor/local/include/graphene-1.0/graphene-rect.h +180 -0
  79. data/vendor/local/include/graphene-1.0/graphene-simd4f.h +1870 -0
  80. data/vendor/local/include/graphene-1.0/graphene-simd4x4f.h +1045 -0
  81. data/vendor/local/include/graphene-1.0/graphene-size.h +105 -0
  82. data/vendor/local/include/graphene-1.0/graphene-sphere.h +97 -0
  83. data/vendor/local/include/graphene-1.0/graphene-triangle.h +105 -0
  84. data/vendor/local/include/graphene-1.0/graphene-types.h +88 -0
  85. data/vendor/local/include/graphene-1.0/graphene-vec2.h +130 -0
  86. data/vendor/local/include/graphene-1.0/graphene-vec3.h +155 -0
  87. data/vendor/local/include/graphene-1.0/graphene-vec4.h +156 -0
  88. data/vendor/local/include/graphene-1.0/graphene-version-macros.h +185 -0
  89. data/vendor/local/include/graphene-1.0/graphene-version.h +70 -0
  90. data/vendor/local/include/graphene-1.0/graphene.h +61 -0
  91. data/vendor/local/include/harfbuzz/hb-common.h +36 -0
  92. data/vendor/local/include/harfbuzz/hb-font.h +18 -1
  93. data/vendor/local/include/harfbuzz/hb-ot-var.h +105 -0
  94. data/vendor/local/include/harfbuzz/hb-ot.h +1 -0
  95. data/vendor/local/include/harfbuzz/hb-shape.h +0 -16
  96. data/vendor/local/include/harfbuzz/hb-version.h +2 -2
  97. data/vendor/local/include/pango-1.0/pango/pango-engine.h +6 -6
  98. data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
  99. data/vendor/local/include/pango-1.0/pango/pango-layout.h +1 -1
  100. data/vendor/local/lib/girepository-1.0/Graphene-1.0.typelib +0 -0
  101. data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
  102. data/vendor/local/lib/graphene-1.0/include/graphene-config.h +89 -0
  103. data/vendor/local/lib/icudt.dll +0 -0
  104. data/vendor/local/lib/icudt58.dll +0 -0
  105. data/vendor/local/lib/icuin.dll +0 -0
  106. data/vendor/local/lib/icuin58.dll +0 -0
  107. data/vendor/local/lib/icuio.dll +0 -0
  108. data/vendor/local/lib/icuio58.dll +0 -0
  109. data/vendor/local/lib/icutest.dll +0 -0
  110. data/vendor/local/lib/icutest58.dll +0 -0
  111. data/vendor/local/lib/icutu.dll +0 -0
  112. data/vendor/local/lib/icutu58.dll +0 -0
  113. data/vendor/local/lib/icuuc.dll +0 -0
  114. data/vendor/local/lib/icuuc58.dll +0 -0
  115. data/vendor/local/lib/libgraphene-1.0.dll.a +0 -0
  116. data/vendor/local/lib/libgraphene-1.0.la +41 -0
  117. data/vendor/local/lib/libharfbuzz-icu.a +0 -0
  118. data/vendor/local/lib/libharfbuzz-icu.la +1 -1
  119. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  120. data/vendor/local/lib/libharfbuzz.la +1 -1
  121. data/vendor/local/lib/libicudt.dll.a +0 -0
  122. data/vendor/local/lib/libicuin.dll.a +0 -0
  123. data/vendor/local/lib/libicuio.dll.a +0 -0
  124. data/vendor/local/lib/libicutest.dll.a +0 -0
  125. data/vendor/local/lib/libicutu.dll.a +0 -0
  126. data/vendor/local/lib/libicuuc.dll.a +0 -0
  127. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  128. data/vendor/local/lib/libpango-1.0.la +1 -1
  129. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  130. data/vendor/local/lib/libpangocairo-1.0.la +1 -1
  131. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  132. data/vendor/local/lib/libpangoft2-1.0.la +1 -1
  133. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  134. data/vendor/local/lib/libpangowin32-1.0.la +1 -1
  135. data/vendor/local/lib/pkgconfig/graphene-1.0.pc +15 -0
  136. data/vendor/local/lib/pkgconfig/graphene-gobject-1.0.pc +15 -0
  137. data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
  138. data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
  139. data/vendor/local/lib/pkgconfig/pango.pc +1 -1
  140. data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
  141. data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
  142. data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
  143. data/vendor/local/share/gir-1.0/Graphene-1.0.gir +8180 -0
  144. data/vendor/local/share/gir-1.0/Pango-1.0.gir +12 -16
  145. data/vendor/local/share/gtk-doc/html/graphene/annotation-glossary.html +57 -0
  146. data/vendor/local/share/gtk-doc/html/graphene/api-index.html +1985 -0
  147. data/vendor/local/share/gtk-doc/html/graphene/ch01.html +97 -0
  148. data/vendor/local/share/gtk-doc/html/graphene/deprecated-api-index.html +34 -0
  149. data/vendor/local/share/gtk-doc/html/graphene/graphene-Box.html +1252 -0
  150. data/vendor/local/share/gtk-doc/html/graphene/graphene-Euler.html +886 -0
  151. data/vendor/local/share/gtk-doc/html/graphene/graphene-Frustum.html +527 -0
  152. data/vendor/local/share/gtk-doc/html/graphene/graphene-GObject-integration.html +147 -0
  153. data/vendor/local/share/gtk-doc/html/graphene/graphene-Matrix.html +2959 -0
  154. data/vendor/local/share/gtk-doc/html/graphene/graphene-Plane.html +641 -0
  155. data/vendor/local/share/gtk-doc/html/graphene/graphene-Point.html +689 -0
  156. data/vendor/local/share/gtk-doc/html/graphene/graphene-Point3D.html +916 -0
  157. data/vendor/local/share/gtk-doc/html/graphene/graphene-Quad.html +418 -0
  158. data/vendor/local/share/gtk-doc/html/graphene/graphene-Quaternion.html +1056 -0
  159. data/vendor/local/share/gtk-doc/html/graphene/graphene-Ray.html +596 -0
  160. data/vendor/local/share/gtk-doc/html/graphene/graphene-Rectangle.html +1483 -0
  161. data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-matrix.html +1475 -0
  162. data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-vector.html +3046 -0
  163. data/vendor/local/share/gtk-doc/html/graphene/graphene-Size.html +489 -0
  164. data/vendor/local/share/gtk-doc/html/graphene/graphene-Sphere.html +641 -0
  165. data/vendor/local/share/gtk-doc/html/graphene/graphene-Triangle.html +705 -0
  166. data/vendor/local/share/gtk-doc/html/graphene/graphene-Vectors.html +3715 -0
  167. data/vendor/local/share/gtk-doc/html/graphene/graphene-Versioning-information.html +104 -0
  168. data/vendor/local/share/gtk-doc/html/graphene/graphene.devhelp2 +534 -0
  169. data/vendor/local/share/gtk-doc/html/graphene/home.png +0 -0
  170. data/vendor/local/share/gtk-doc/html/graphene/index.html +107 -0
  171. data/vendor/local/share/gtk-doc/html/graphene/ix03.html +1313 -0
  172. data/vendor/local/share/gtk-doc/html/graphene/ix04.html +582 -0
  173. data/vendor/local/share/gtk-doc/html/graphene/ix05.html +151 -0
  174. data/vendor/local/share/gtk-doc/html/graphene/ix06.html +34 -0
  175. data/vendor/local/share/gtk-doc/html/graphene/left-insensitive.png +0 -0
  176. data/vendor/local/share/gtk-doc/html/graphene/left.png +0 -0
  177. data/vendor/local/share/gtk-doc/html/{pango/api-index-1-40.html → graphene/object-tree.html} +14 -11
  178. data/vendor/local/share/gtk-doc/html/graphene/rectangle-intersection.png +0 -0
  179. data/vendor/local/share/gtk-doc/html/graphene/rectangle-union.png +0 -0
  180. data/vendor/local/share/gtk-doc/html/graphene/rectangle.png +0 -0
  181. data/vendor/local/share/gtk-doc/html/graphene/right-insensitive.png +0 -0
  182. data/vendor/local/share/gtk-doc/html/graphene/right.png +0 -0
  183. data/vendor/local/share/gtk-doc/html/graphene/style.css +479 -0
  184. data/vendor/local/share/gtk-doc/html/graphene/triangle-barycentric.png +0 -0
  185. data/vendor/local/share/gtk-doc/html/graphene/up-insensitive.png +0 -0
  186. data/vendor/local/share/gtk-doc/html/graphene/up.png +0 -0
  187. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-2-3.html +2 -2
  188. data/vendor/local/share/gtk-doc/html/harfbuzz/{api-index-1-4-0.html → api-index-1-3-3.html} +2 -2
  189. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +104 -0
  190. data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +9 -2
  191. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +1 -1
  192. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +156 -40
  193. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +73 -0
  194. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +1 -0
  195. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +49 -0
  196. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-math.html +174 -177
  197. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +40 -0
  198. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +2 -2
  199. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +28 -10
  200. data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +1 -1
  201. data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +2 -2
  202. data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +2 -2
  203. data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +2 -2
  204. data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +1 -1
  205. data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +1 -1
  206. data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +3 -3
  207. data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +1 -1
  208. data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +2 -2
  209. data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +1 -1
  210. data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +1 -1
  211. data/vendor/local/share/gtk-doc/html/pango/index.html +2 -23
  212. data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +1 -1
  213. data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +1 -1
  214. data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +69 -69
  215. data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +1 -1
  216. data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +1 -1
  217. data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +5 -1
  218. data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +5 -4
  219. data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +8 -4
  220. data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +3 -3
  221. data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +4 -4
  222. data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +1 -1
  223. data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +3 -1
  224. data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +1 -1
  225. data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +3 -3
  226. data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +1 -1
  227. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +1 -1
  228. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +3 -3
  229. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +3 -3
  230. data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +1 -1
  231. data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +3 -3
  232. data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +1 -1
  233. data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +1 -1
  234. data/vendor/local/share/gtk-doc/html/pango/pango.html +1 -1
  235. data/vendor/local/share/gtk-doc/html/pango/rendering.html +1 -1
  236. data/vendor/local/share/man/man1/pango-view.1 +2 -2
  237. metadata +119 -78
  238. data/README +0 -32
  239. data/ext/pango/rbpango.c +0 -356
  240. data/ext/pango/rbpango.h +0 -95
  241. data/ext/pango/rbpangoanalysis.c +0 -218
  242. data/ext/pango/rbpangoattribute.c +0 -506
  243. data/ext/pango/rbpangoattriterator.c +0 -141
  244. data/ext/pango/rbpangoattrlist.c +0 -101
  245. data/ext/pango/rbpangocairo.c +0 -122
  246. data/ext/pango/rbpangocairocontext.c +0 -131
  247. data/ext/pango/rbpangocolor.c +0 -120
  248. data/ext/pango/rbpangocontext.c +0 -344
  249. data/ext/pango/rbpangocoverage.c +0 -106
  250. data/ext/pango/rbpangoengine.c +0 -73
  251. data/ext/pango/rbpangofont.c +0 -110
  252. data/ext/pango/rbpangofontdescription.c +0 -282
  253. data/ext/pango/rbpangofontface.c +0 -73
  254. data/ext/pango/rbpangofontfamily.c +0 -79
  255. data/ext/pango/rbpangofontmap.c +0 -102
  256. data/ext/pango/rbpangofontmetrics.c +0 -85
  257. data/ext/pango/rbpangofontset.c +0 -69
  258. data/ext/pango/rbpangofontsetsimple.c +0 -60
  259. data/ext/pango/rbpangoglyphinfo.c +0 -123
  260. data/ext/pango/rbpangoglyphitem.c +0 -125
  261. data/ext/pango/rbpangoglyphstring.c +0 -151
  262. data/ext/pango/rbpangogravity.c +0 -54
  263. data/ext/pango/rbpangoitem.c +0 -95
  264. data/ext/pango/rbpangolanguage.c +0 -94
  265. data/ext/pango/rbpangolayout.c +0 -583
  266. data/ext/pango/rbpangolayoutiter.c +0 -189
  267. data/ext/pango/rbpangolayoutline.c +0 -243
  268. data/ext/pango/rbpangologattr.c +0 -109
  269. data/ext/pango/rbpangomatrix.c +0 -143
  270. data/ext/pango/rbpangoprivate.h +0 -49
  271. data/ext/pango/rbpangorectangle.c +0 -170
  272. data/ext/pango/rbpangorenderer.c +0 -193
  273. data/ext/pango/rbpangoscript.c +0 -84
  274. data/ext/pango/rbpangoscriptiter.c +0 -92
  275. data/ext/pango/rbpangotabarray.c +0 -128
  276. data/sample/attribute.rb +0 -82
  277. data/sample/break.rb +0 -28
  278. data/sample/gdk_layout.rb +0 -27
  279. data/sample/glyphstring.rb +0 -61
  280. data/sample/item.rb +0 -37
  281. data/sample/label.rb +0 -23
  282. data/sample/layout.rb +0 -102
  283. data/sample/pango_cairo.rb +0 -66
  284. data/sample/parse.rb +0 -33
  285. data/sample/sample.txt +0 -10
  286. data/sample/script.rb +0 -23
  287. data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +0 -134
  288. data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +0 -48
  289. data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +0 -63
  290. data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +0 -227
  291. data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +0 -151
  292. data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +0 -121
  293. data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +0 -86
  294. data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +0 -123
  295. data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +0 -96
  296. data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +0 -45
  297. data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +0 -38
  298. data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +0 -38
  299. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +0 -52
  300. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +0 -41
  301. data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +0 -38
  302. data/vendor/local/share/gtk-doc/html/pango/api-index-1-38.html +0 -79
  303. data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +0 -200
  304. data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +0 -164
  305. data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +0 -170
  306. data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +0 -441
@@ -0,0 +1,641 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Sphere: Graphene Reference Manual</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7
+ <link rel="home" href="index.html" title="Graphene Reference Manual">
8
+ <link rel="up" href="ch01.html" title="Graphene">
9
+ <link rel="prev" href="graphene-Box.html" title="Box">
10
+ <link rel="next" href="graphene-Frustum.html" title="Frustum">
11
+ <meta name="generator" content="GTK-Doc V1.25 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
14
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18
+ <a href="#graphene-Sphere.description" class="shortcut">Description</a></span>
19
+ </td>
20
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21
+ <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22
+ <td><a accesskey="p" href="graphene-Box.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23
+ <td><a accesskey="n" href="graphene-Frustum.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24
+ </tr></table>
25
+ <div class="refentry">
26
+ <a name="graphene-Sphere"></a><div class="titlepage"></div>
27
+ <div class="refnamediv"><table width="100%"><tr>
28
+ <td valign="top">
29
+ <h2><span class="refentrytitle"><a name="graphene-Sphere.top_of_page"></a>Sphere</span></h2>
30
+ <p>Sphere — A sphere</p>
31
+ </td>
32
+ <td class="gallery_image" valign="top" align="right"></td>
33
+ </tr></table></div>
34
+ <div class="refsect1">
35
+ <a name="graphene-Sphere.functions"></a><h2>Functions</h2>
36
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
37
+ <colgroup>
38
+ <col width="150px" class="functions_return">
39
+ <col class="functions_name">
40
+ </colgroup>
41
+ <tbody>
42
+ <tr>
43
+ <td class="function_type">
44
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="returnvalue">graphene_sphere_t</span></a> *
45
+ </td>
46
+ <td class="function_name">
47
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-alloc" title="graphene_sphere_alloc ()">graphene_sphere_alloc</a> <span class="c_punctuation">()</span>
48
+ </td>
49
+ </tr>
50
+ <tr>
51
+ <td class="function_type">
52
+ <span class="returnvalue">void</span>
53
+ </td>
54
+ <td class="function_name">
55
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-free" title="graphene_sphere_free ()">graphene_sphere_free</a> <span class="c_punctuation">()</span>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td class="function_type">
60
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="returnvalue">graphene_sphere_t</span></a> *
61
+ </td>
62
+ <td class="function_name">
63
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-init" title="graphene_sphere_init ()">graphene_sphere_init</a> <span class="c_punctuation">()</span>
64
+ </td>
65
+ </tr>
66
+ <tr>
67
+ <td class="function_type">
68
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="returnvalue">graphene_sphere_t</span></a> *
69
+ </td>
70
+ <td class="function_name">
71
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-init-from-points" title="graphene_sphere_init_from_points ()">graphene_sphere_init_from_points</a> <span class="c_punctuation">()</span>
72
+ </td>
73
+ </tr>
74
+ <tr>
75
+ <td class="function_type">
76
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="returnvalue">graphene_sphere_t</span></a> *
77
+ </td>
78
+ <td class="function_name">
79
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-init-from-vectors" title="graphene_sphere_init_from_vectors ()">graphene_sphere_init_from_vectors</a> <span class="c_punctuation">()</span>
80
+ </td>
81
+ </tr>
82
+ <tr>
83
+ <td class="function_type">
84
+ <span class="returnvalue">void</span>
85
+ </td>
86
+ <td class="function_name">
87
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-get-center" title="graphene_sphere_get_center ()">graphene_sphere_get_center</a> <span class="c_punctuation">()</span>
88
+ </td>
89
+ </tr>
90
+ <tr>
91
+ <td class="function_type">
92
+ <span class="returnvalue">float</span>
93
+ </td>
94
+ <td class="function_name">
95
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-get-radius" title="graphene_sphere_get_radius ()">graphene_sphere_get_radius</a> <span class="c_punctuation">()</span>
96
+ </td>
97
+ </tr>
98
+ <tr>
99
+ <td class="function_type">
100
+ <span class="returnvalue">void</span>
101
+ </td>
102
+ <td class="function_name">
103
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-get-bounding-box" title="graphene_sphere_get_bounding_box ()">graphene_sphere_get_bounding_box</a> <span class="c_punctuation">()</span>
104
+ </td>
105
+ </tr>
106
+ <tr>
107
+ <td class="function_type">
108
+ <span class="returnvalue">bool</span>
109
+ </td>
110
+ <td class="function_name">
111
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-is-empty" title="graphene_sphere_is_empty ()">graphene_sphere_is_empty</a> <span class="c_punctuation">()</span>
112
+ </td>
113
+ </tr>
114
+ <tr>
115
+ <td class="function_type">
116
+ <span class="returnvalue">float</span>
117
+ </td>
118
+ <td class="function_name">
119
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-distance" title="graphene_sphere_distance ()">graphene_sphere_distance</a> <span class="c_punctuation">()</span>
120
+ </td>
121
+ </tr>
122
+ <tr>
123
+ <td class="function_type">
124
+ <span class="returnvalue">bool</span>
125
+ </td>
126
+ <td class="function_name">
127
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-contains-point" title="graphene_sphere_contains_point ()">graphene_sphere_contains_point</a> <span class="c_punctuation">()</span>
128
+ </td>
129
+ </tr>
130
+ <tr>
131
+ <td class="function_type">
132
+ <span class="returnvalue">void</span>
133
+ </td>
134
+ <td class="function_name">
135
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-translate" title="graphene_sphere_translate ()">graphene_sphere_translate</a> <span class="c_punctuation">()</span>
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <td class="function_type">
140
+ <span class="returnvalue">bool</span>
141
+ </td>
142
+ <td class="function_name">
143
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-equal" title="graphene_sphere_equal ()">graphene_sphere_equal</a> <span class="c_punctuation">()</span>
144
+ </td>
145
+ </tr>
146
+ </tbody>
147
+ </table></div>
148
+ </div>
149
+ <div class="refsect1">
150
+ <a name="graphene-Sphere.other"></a><h2>Types and Values</h2>
151
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
152
+ <colgroup>
153
+ <col width="150px" class="name">
154
+ <col class="description">
155
+ </colgroup>
156
+ <tbody><tr>
157
+ <td class="datatype_keyword"> </td>
158
+ <td class="function_name"><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t">graphene_sphere_t</a></td>
159
+ </tr></tbody>
160
+ </table></div>
161
+ </div>
162
+ <div class="refsect1">
163
+ <a name="graphene-Sphere.includes"></a><h2>Includes</h2>
164
+ <pre class="synopsis">#include &lt;graphene.h&gt;
165
+ </pre>
166
+ </div>
167
+ <div class="refsect1">
168
+ <a name="graphene-Sphere.description"></a><h2>Description</h2>
169
+ <p><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> provides a representation of a sphere using its center
170
+ and radius.</p>
171
+ </div>
172
+ <div class="refsect1">
173
+ <a name="graphene-Sphere.functions_details"></a><h2>Functions</h2>
174
+ <div class="refsect2">
175
+ <a name="graphene-sphere-alloc"></a><h3>graphene_sphere_alloc ()</h3>
176
+ <pre class="programlisting"><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="returnvalue">graphene_sphere_t</span></a> *
177
+ graphene_sphere_alloc (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
178
+ <p>Allocates a new <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>.</p>
179
+ <p>The contents of the newly allocated structure are undefined.</p>
180
+ <p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
181
+ <div class="refsect3">
182
+ <a name="graphene-sphere-alloc.returns"></a><h4>Returns</h4>
183
+ <p> the newly allocated <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>. Use
184
+ <a class="link" href="graphene-Sphere.html#graphene-sphere-free" title="graphene_sphere_free ()"><code class="function">graphene_sphere_free()</code></a> to free the resources allocated by this function. </p>
185
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
186
+ </div>
187
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
188
+ </div>
189
+ <hr>
190
+ <div class="refsect2">
191
+ <a name="graphene-sphere-free"></a><h3>graphene_sphere_free ()</h3>
192
+ <pre class="programlisting"><span class="returnvalue">void</span>
193
+ graphene_sphere_free (<em class="parameter"><code><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>);</pre>
194
+ <p>Frees the resources allocated by <a class="link" href="graphene-Sphere.html#graphene-sphere-alloc" title="graphene_sphere_alloc ()"><code class="function">graphene_sphere_alloc()</code></a>.</p>
195
+ <div class="refsect3">
196
+ <a name="graphene-sphere-free.parameters"></a><h4>Parameters</h4>
197
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
198
+ <colgroup>
199
+ <col width="150px" class="parameters_name">
200
+ <col class="parameters_description">
201
+ <col width="200px" class="parameters_annotations">
202
+ </colgroup>
203
+ <tbody><tr>
204
+ <td class="parameter_name"><p>s</p></td>
205
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
206
+ <td class="parameter_annotations"> </td>
207
+ </tr></tbody>
208
+ </table></div>
209
+ </div>
210
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
211
+ </div>
212
+ <hr>
213
+ <div class="refsect2">
214
+ <a name="graphene-sphere-init"></a><h3>graphene_sphere_init ()</h3>
215
+ <pre class="programlisting"><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="returnvalue">graphene_sphere_t</span></a> *
216
+ graphene_sphere_init (<em class="parameter"><code><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>,
217
+ <em class="parameter"><code>const <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> *center</code></em>,
218
+ <em class="parameter"><code><span class="type">float</span> radius</code></em>);</pre>
219
+ <p>Initializes the given <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> with the given <em class="parameter"><code>center</code></em>
220
+ and <em class="parameter"><code>radius</code></em>
221
+ .</p>
222
+ <div class="refsect3">
223
+ <a name="graphene-sphere-init.parameters"></a><h4>Parameters</h4>
224
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
225
+ <colgroup>
226
+ <col width="150px" class="parameters_name">
227
+ <col class="parameters_description">
228
+ <col width="200px" class="parameters_annotations">
229
+ </colgroup>
230
+ <tbody>
231
+ <tr>
232
+ <td class="parameter_name"><p>s</p></td>
233
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> to initialize</p></td>
234
+ <td class="parameter_annotations"> </td>
235
+ </tr>
236
+ <tr>
237
+ <td class="parameter_name"><p>center</p></td>
238
+ <td class="parameter_description"><p> the coordinates of the center of the sphere, or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
239
+ for a center in (0, 0, 0). </p></td>
240
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
241
+ </tr>
242
+ <tr>
243
+ <td class="parameter_name"><p>radius</p></td>
244
+ <td class="parameter_description"><p>the radius of the sphere</p></td>
245
+ <td class="parameter_annotations"> </td>
246
+ </tr>
247
+ </tbody>
248
+ </table></div>
249
+ </div>
250
+ <div class="refsect3">
251
+ <a name="graphene-sphere-init.returns"></a><h4>Returns</h4>
252
+ <p> the initialized <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>. </p>
253
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
254
+ </div>
255
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
256
+ </div>
257
+ <hr>
258
+ <div class="refsect2">
259
+ <a name="graphene-sphere-init-from-points"></a><h3>graphene_sphere_init_from_points ()</h3>
260
+ <pre class="programlisting"><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="returnvalue">graphene_sphere_t</span></a> *
261
+ graphene_sphere_init_from_points (<em class="parameter"><code><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>,
262
+ <em class="parameter"><code>unsigned <span class="type">int</span> n_points</code></em>,
263
+ <em class="parameter"><code>const <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> *points</code></em>,
264
+ <em class="parameter"><code>const <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> *center</code></em>);</pre>
265
+ <p>Initializes the given <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> using the given array
266
+ of 3D coordinates so that the sphere includes them.</p>
267
+ <p>The center of the sphere can either be specified, or will be center
268
+ of the 3D volume that encompasses all <em class="parameter"><code>points</code></em>
269
+ .</p>
270
+ <div class="refsect3">
271
+ <a name="graphene-sphere-init-from-points.parameters"></a><h4>Parameters</h4>
272
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
273
+ <colgroup>
274
+ <col width="150px" class="parameters_name">
275
+ <col class="parameters_description">
276
+ <col width="200px" class="parameters_annotations">
277
+ </colgroup>
278
+ <tbody>
279
+ <tr>
280
+ <td class="parameter_name"><p>s</p></td>
281
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> to initialize</p></td>
282
+ <td class="parameter_annotations"> </td>
283
+ </tr>
284
+ <tr>
285
+ <td class="parameter_name"><p>n_points</p></td>
286
+ <td class="parameter_description"><p>the number of <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> in the <em class="parameter"><code>points</code></em>
287
+ array</p></td>
288
+ <td class="parameter_annotations"> </td>
289
+ </tr>
290
+ <tr>
291
+ <td class="parameter_name"><p>points</p></td>
292
+ <td class="parameter_description"><p> an array of <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a>. </p></td>
293
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_points]</span></td>
294
+ </tr>
295
+ <tr>
296
+ <td class="parameter_name"><p>center</p></td>
297
+ <td class="parameter_description"><p> the center of the sphere. </p></td>
298
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
299
+ </tr>
300
+ </tbody>
301
+ </table></div>
302
+ </div>
303
+ <div class="refsect3">
304
+ <a name="graphene-sphere-init-from-points.returns"></a><h4>Returns</h4>
305
+ <p> the initialized <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>. </p>
306
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
307
+ </div>
308
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
309
+ </div>
310
+ <hr>
311
+ <div class="refsect2">
312
+ <a name="graphene-sphere-init-from-vectors"></a><h3>graphene_sphere_init_from_vectors ()</h3>
313
+ <pre class="programlisting"><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="returnvalue">graphene_sphere_t</span></a> *
314
+ graphene_sphere_init_from_vectors (<em class="parameter"><code><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>,
315
+ <em class="parameter"><code>unsigned <span class="type">int</span> n_vectors</code></em>,
316
+ <em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> *vectors</code></em>,
317
+ <em class="parameter"><code>const <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> *center</code></em>);</pre>
318
+ <p>Initializes the given <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> using the given array
319
+ of 3D coordinates so that the sphere includes them.</p>
320
+ <p>The center of the sphere can either be specified, or will be center
321
+ of the 3D volume that encompasses all <em class="parameter"><code>vectors</code></em>
322
+ .</p>
323
+ <div class="refsect3">
324
+ <a name="graphene-sphere-init-from-vectors.parameters"></a><h4>Parameters</h4>
325
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
326
+ <colgroup>
327
+ <col width="150px" class="parameters_name">
328
+ <col class="parameters_description">
329
+ <col width="200px" class="parameters_annotations">
330
+ </colgroup>
331
+ <tbody>
332
+ <tr>
333
+ <td class="parameter_name"><p>s</p></td>
334
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> to initialize</p></td>
335
+ <td class="parameter_annotations"> </td>
336
+ </tr>
337
+ <tr>
338
+ <td class="parameter_name"><p>n_vectors</p></td>
339
+ <td class="parameter_description"><p>the number of <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> in the <em class="parameter"><code>vectors</code></em>
340
+ array</p></td>
341
+ <td class="parameter_annotations"> </td>
342
+ </tr>
343
+ <tr>
344
+ <td class="parameter_name"><p>vectors</p></td>
345
+ <td class="parameter_description"><p> an array of <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>. </p></td>
346
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_vectors]</span></td>
347
+ </tr>
348
+ <tr>
349
+ <td class="parameter_name"><p>center</p></td>
350
+ <td class="parameter_description"><p> the center of the sphere. </p></td>
351
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
352
+ </tr>
353
+ </tbody>
354
+ </table></div>
355
+ </div>
356
+ <div class="refsect3">
357
+ <a name="graphene-sphere-init-from-vectors.returns"></a><h4>Returns</h4>
358
+ <p> the initialized <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>. </p>
359
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
360
+ </div>
361
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
362
+ </div>
363
+ <hr>
364
+ <div class="refsect2">
365
+ <a name="graphene-sphere-get-center"></a><h3>graphene_sphere_get_center ()</h3>
366
+ <pre class="programlisting"><span class="returnvalue">void</span>
367
+ graphene_sphere_get_center (<em class="parameter"><code>const <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>,
368
+ <em class="parameter"><code><a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> *center</code></em>);</pre>
369
+ <p>Retrieves the coordinates of the center of a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>.</p>
370
+ <div class="refsect3">
371
+ <a name="graphene-sphere-get-center.parameters"></a><h4>Parameters</h4>
372
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
373
+ <colgroup>
374
+ <col width="150px" class="parameters_name">
375
+ <col class="parameters_description">
376
+ <col width="200px" class="parameters_annotations">
377
+ </colgroup>
378
+ <tbody>
379
+ <tr>
380
+ <td class="parameter_name"><p>s</p></td>
381
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
382
+ <td class="parameter_annotations"> </td>
383
+ </tr>
384
+ <tr>
385
+ <td class="parameter_name"><p>center</p></td>
386
+ <td class="parameter_description"><p> return location for the coordinates of
387
+ the center. </p></td>
388
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span></td>
389
+ </tr>
390
+ </tbody>
391
+ </table></div>
392
+ </div>
393
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
394
+ </div>
395
+ <hr>
396
+ <div class="refsect2">
397
+ <a name="graphene-sphere-get-radius"></a><h3>graphene_sphere_get_radius ()</h3>
398
+ <pre class="programlisting"><span class="returnvalue">float</span>
399
+ graphene_sphere_get_radius (<em class="parameter"><code>const <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>);</pre>
400
+ <p>Retrieves the radius of a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>.</p>
401
+ <div class="refsect3">
402
+ <a name="graphene-sphere-get-radius.parameters"></a><h4>Parameters</h4>
403
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
404
+ <colgroup>
405
+ <col width="150px" class="parameters_name">
406
+ <col class="parameters_description">
407
+ <col width="200px" class="parameters_annotations">
408
+ </colgroup>
409
+ <tbody><tr>
410
+ <td class="parameter_name"><p>s</p></td>
411
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
412
+ <td class="parameter_annotations"> </td>
413
+ </tr></tbody>
414
+ </table></div>
415
+ </div>
416
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
417
+ </div>
418
+ <hr>
419
+ <div class="refsect2">
420
+ <a name="graphene-sphere-get-bounding-box"></a><h3>graphene_sphere_get_bounding_box ()</h3>
421
+ <pre class="programlisting"><span class="returnvalue">void</span>
422
+ graphene_sphere_get_bounding_box (<em class="parameter"><code>const <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>,
423
+ <em class="parameter"><code><a class="link" href="graphene-Box.html#graphene-box-t" title="graphene_box_t"><span class="type">graphene_box_t</span></a> *box</code></em>);</pre>
424
+ <p>Computes the bounding box capable of containing the
425
+ given <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>.</p>
426
+ <div class="refsect3">
427
+ <a name="graphene-sphere-get-bounding-box.parameters"></a><h4>Parameters</h4>
428
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
429
+ <colgroup>
430
+ <col width="150px" class="parameters_name">
431
+ <col class="parameters_description">
432
+ <col width="200px" class="parameters_annotations">
433
+ </colgroup>
434
+ <tbody>
435
+ <tr>
436
+ <td class="parameter_name"><p>s</p></td>
437
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
438
+ <td class="parameter_annotations"> </td>
439
+ </tr>
440
+ <tr>
441
+ <td class="parameter_name"><p>box</p></td>
442
+ <td class="parameter_description"><p> return location for the bounding box. </p></td>
443
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span></td>
444
+ </tr>
445
+ </tbody>
446
+ </table></div>
447
+ </div>
448
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
449
+ </div>
450
+ <hr>
451
+ <div class="refsect2">
452
+ <a name="graphene-sphere-is-empty"></a><h3>graphene_sphere_is_empty ()</h3>
453
+ <pre class="programlisting"><span class="returnvalue">bool</span>
454
+ graphene_sphere_is_empty (<em class="parameter"><code>const <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>);</pre>
455
+ <p>Checks whether the sphere has a zero radius.</p>
456
+ <div class="refsect3">
457
+ <a name="graphene-sphere-is-empty.parameters"></a><h4>Parameters</h4>
458
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
459
+ <colgroup>
460
+ <col width="150px" class="parameters_name">
461
+ <col class="parameters_description">
462
+ <col width="200px" class="parameters_annotations">
463
+ </colgroup>
464
+ <tbody><tr>
465
+ <td class="parameter_name"><p>s</p></td>
466
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
467
+ <td class="parameter_annotations"> </td>
468
+ </tr></tbody>
469
+ </table></div>
470
+ </div>
471
+ <div class="refsect3">
472
+ <a name="graphene-sphere-is-empty.returns"></a><h4>Returns</h4>
473
+ <p> <code class="literal">true</code> if the sphere is empty</p>
474
+ </div>
475
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
476
+ </div>
477
+ <hr>
478
+ <div class="refsect2">
479
+ <a name="graphene-sphere-distance"></a><h3>graphene_sphere_distance ()</h3>
480
+ <pre class="programlisting"><span class="returnvalue">float</span>
481
+ graphene_sphere_distance (<em class="parameter"><code>const <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>,
482
+ <em class="parameter"><code>const <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> *point</code></em>);</pre>
483
+ <p>Computes the distance of the given <em class="parameter"><code>point</code></em>
484
+ from the surface of
485
+ a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>.</p>
486
+ <div class="refsect3">
487
+ <a name="graphene-sphere-distance.parameters"></a><h4>Parameters</h4>
488
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
489
+ <colgroup>
490
+ <col width="150px" class="parameters_name">
491
+ <col class="parameters_description">
492
+ <col width="200px" class="parameters_annotations">
493
+ </colgroup>
494
+ <tbody>
495
+ <tr>
496
+ <td class="parameter_name"><p>s</p></td>
497
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
498
+ <td class="parameter_annotations"> </td>
499
+ </tr>
500
+ <tr>
501
+ <td class="parameter_name"><p>point</p></td>
502
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a></p></td>
503
+ <td class="parameter_annotations"> </td>
504
+ </tr>
505
+ </tbody>
506
+ </table></div>
507
+ </div>
508
+ <div class="refsect3">
509
+ <a name="graphene-sphere-distance.returns"></a><h4>Returns</h4>
510
+ <p> the distance of the point</p>
511
+ </div>
512
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
513
+ </div>
514
+ <hr>
515
+ <div class="refsect2">
516
+ <a name="graphene-sphere-contains-point"></a><h3>graphene_sphere_contains_point ()</h3>
517
+ <pre class="programlisting"><span class="returnvalue">bool</span>
518
+ graphene_sphere_contains_point (<em class="parameter"><code>const <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>,
519
+ <em class="parameter"><code>const <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> *point</code></em>);</pre>
520
+ <p>Checks whether the given <em class="parameter"><code>point</code></em>
521
+ is contained in the volume
522
+ of a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a>.</p>
523
+ <div class="refsect3">
524
+ <a name="graphene-sphere-contains-point.parameters"></a><h4>Parameters</h4>
525
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
526
+ <colgroup>
527
+ <col width="150px" class="parameters_name">
528
+ <col class="parameters_description">
529
+ <col width="200px" class="parameters_annotations">
530
+ </colgroup>
531
+ <tbody>
532
+ <tr>
533
+ <td class="parameter_name"><p>s</p></td>
534
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
535
+ <td class="parameter_annotations"> </td>
536
+ </tr>
537
+ <tr>
538
+ <td class="parameter_name"><p>point</p></td>
539
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a></p></td>
540
+ <td class="parameter_annotations"> </td>
541
+ </tr>
542
+ </tbody>
543
+ </table></div>
544
+ </div>
545
+ <div class="refsect3">
546
+ <a name="graphene-sphere-contains-point.returns"></a><h4>Returns</h4>
547
+ <p> <code class="literal">true</code> if the sphere contains the point</p>
548
+ </div>
549
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
550
+ </div>
551
+ <hr>
552
+ <div class="refsect2">
553
+ <a name="graphene-sphere-translate"></a><h3>graphene_sphere_translate ()</h3>
554
+ <pre class="programlisting"><span class="returnvalue">void</span>
555
+ graphene_sphere_translate (<em class="parameter"><code>const <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *s</code></em>,
556
+ <em class="parameter"><code>const <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> *point</code></em>,
557
+ <em class="parameter"><code><a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *res</code></em>);</pre>
558
+ <p>Translates the center of the given <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> using the <em class="parameter"><code>point</code></em>
559
+
560
+ coordinates as the delta of the translation.</p>
561
+ <div class="refsect3">
562
+ <a name="graphene-sphere-translate.parameters"></a><h4>Parameters</h4>
563
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
564
+ <colgroup>
565
+ <col width="150px" class="parameters_name">
566
+ <col class="parameters_description">
567
+ <col width="200px" class="parameters_annotations">
568
+ </colgroup>
569
+ <tbody>
570
+ <tr>
571
+ <td class="parameter_name"><p>s</p></td>
572
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
573
+ <td class="parameter_annotations"> </td>
574
+ </tr>
575
+ <tr>
576
+ <td class="parameter_name"><p>point</p></td>
577
+ <td class="parameter_description"><p>the coordinates of the translation</p></td>
578
+ <td class="parameter_annotations"> </td>
579
+ </tr>
580
+ <tr>
581
+ <td class="parameter_name"><p>res</p></td>
582
+ <td class="parameter_description"><p> return location for the translated sphere. </p></td>
583
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span></td>
584
+ </tr>
585
+ </tbody>
586
+ </table></div>
587
+ </div>
588
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
589
+ </div>
590
+ <hr>
591
+ <div class="refsect2">
592
+ <a name="graphene-sphere-equal"></a><h3>graphene_sphere_equal ()</h3>
593
+ <pre class="programlisting"><span class="returnvalue">bool</span>
594
+ graphene_sphere_equal (<em class="parameter"><code>const <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *a</code></em>,
595
+ <em class="parameter"><code>const <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> *b</code></em>);</pre>
596
+ <p>Checks whether two <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a> are equal.</p>
597
+ <div class="refsect3">
598
+ <a name="graphene-sphere-equal.parameters"></a><h4>Parameters</h4>
599
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
600
+ <colgroup>
601
+ <col width="150px" class="parameters_name">
602
+ <col class="parameters_description">
603
+ <col width="200px" class="parameters_annotations">
604
+ </colgroup>
605
+ <tbody>
606
+ <tr>
607
+ <td class="parameter_name"><p>a</p></td>
608
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
609
+ <td class="parameter_annotations"> </td>
610
+ </tr>
611
+ <tr>
612
+ <td class="parameter_name"><p>b</p></td>
613
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Sphere.html#graphene-sphere-t" title="graphene_sphere_t"><span class="type">graphene_sphere_t</span></a></p></td>
614
+ <td class="parameter_annotations"> </td>
615
+ </tr>
616
+ </tbody>
617
+ </table></div>
618
+ </div>
619
+ <div class="refsect3">
620
+ <a name="graphene-sphere-equal.returns"></a><h4>Returns</h4>
621
+ <p> <code class="literal">true</code> if the spheres are equal</p>
622
+ </div>
623
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
624
+ </div>
625
+ </div>
626
+ <div class="refsect1">
627
+ <a name="graphene-Sphere.other_details"></a><h2>Types and Values</h2>
628
+ <div class="refsect2">
629
+ <a name="graphene-sphere-t"></a><h3>graphene_sphere_t</h3>
630
+ <pre class="programlisting">typedef struct {
631
+ } graphene_sphere_t;
632
+ </pre>
633
+ <p>A sphere, represented by its center and radius.</p>
634
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
635
+ </div>
636
+ </div>
637
+ </div>
638
+ <div class="footer">
639
+ <hr>Generated by GTK-Doc V1.25</div>
640
+ </body>
641
+ </html>