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>Plane: 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-Quaternion.html" title="Quaternion">
10
+ <link rel="next" href="graphene-Ray.html" title="Ray">
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-Plane.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-Quaternion.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23
+ <td><a accesskey="n" href="graphene-Ray.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-Plane"></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-Plane.top_of_page"></a>Plane</span></h2>
30
+ <p>Plane — A plane in 3D space</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-Plane.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-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
45
+ </td>
46
+ <td class="function_name">
47
+ <a class="link" href="graphene-Plane.html#graphene-plane-alloc" title="graphene_plane_alloc ()">graphene_plane_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-Plane.html#graphene-plane-free" title="graphene_plane_free ()">graphene_plane_free</a> <span class="c_punctuation">()</span>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td class="function_type">
60
+ <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
61
+ </td>
62
+ <td class="function_name">
63
+ <a class="link" href="graphene-Plane.html#graphene-plane-init" title="graphene_plane_init ()">graphene_plane_init</a> <span class="c_punctuation">()</span>
64
+ </td>
65
+ </tr>
66
+ <tr>
67
+ <td class="function_type">
68
+ <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
69
+ </td>
70
+ <td class="function_name">
71
+ <a class="link" href="graphene-Plane.html#graphene-plane-init-from-vec4" title="graphene_plane_init_from_vec4 ()">graphene_plane_init_from_vec4</a> <span class="c_punctuation">()</span>
72
+ </td>
73
+ </tr>
74
+ <tr>
75
+ <td class="function_type">
76
+ <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
77
+ </td>
78
+ <td class="function_name">
79
+ <a class="link" href="graphene-Plane.html#graphene-plane-init-from-plane" title="graphene_plane_init_from_plane ()">graphene_plane_init_from_plane</a> <span class="c_punctuation">()</span>
80
+ </td>
81
+ </tr>
82
+ <tr>
83
+ <td class="function_type">
84
+ <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
85
+ </td>
86
+ <td class="function_name">
87
+ <a class="link" href="graphene-Plane.html#graphene-plane-init-from-point" title="graphene_plane_init_from_point ()">graphene_plane_init_from_point</a> <span class="c_punctuation">()</span>
88
+ </td>
89
+ </tr>
90
+ <tr>
91
+ <td class="function_type">
92
+ <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
93
+ </td>
94
+ <td class="function_name">
95
+ <a class="link" href="graphene-Plane.html#graphene-plane-init-from-points" title="graphene_plane_init_from_points ()">graphene_plane_init_from_points</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-Plane.html#graphene-plane-normalize" title="graphene_plane_normalize ()">graphene_plane_normalize</a> <span class="c_punctuation">()</span>
104
+ </td>
105
+ </tr>
106
+ <tr>
107
+ <td class="function_type">
108
+ <span class="returnvalue">void</span>
109
+ </td>
110
+ <td class="function_name">
111
+ <a class="link" href="graphene-Plane.html#graphene-plane-negate" title="graphene_plane_negate ()">graphene_plane_negate</a> <span class="c_punctuation">()</span>
112
+ </td>
113
+ </tr>
114
+ <tr>
115
+ <td class="function_type">
116
+ <span class="returnvalue">bool</span>
117
+ </td>
118
+ <td class="function_name">
119
+ <a class="link" href="graphene-Plane.html#graphene-plane-equal" title="graphene_plane_equal ()">graphene_plane_equal</a> <span class="c_punctuation">()</span>
120
+ </td>
121
+ </tr>
122
+ <tr>
123
+ <td class="function_type">
124
+ <span class="returnvalue">float</span>
125
+ </td>
126
+ <td class="function_name">
127
+ <a class="link" href="graphene-Plane.html#graphene-plane-distance" title="graphene_plane_distance ()">graphene_plane_distance</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-Plane.html#graphene-plane-get-normal" title="graphene_plane_get_normal ()">graphene_plane_get_normal</a> <span class="c_punctuation">()</span>
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <td class="function_type">
140
+ <span class="returnvalue">float</span>
141
+ </td>
142
+ <td class="function_name">
143
+ <a class="link" href="graphene-Plane.html#graphene-plane-get-constant" title="graphene_plane_get_constant ()">graphene_plane_get_constant</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-Plane.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-Plane.html#graphene-plane-t" title="graphene_plane_t">graphene_plane_t</a></td>
159
+ </tr></tbody>
160
+ </table></div>
161
+ </div>
162
+ <div class="refsect1">
163
+ <a name="graphene-Plane.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-Plane.description"></a><h2>Description</h2>
169
+ <p><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> is a structure representing a plane in 3D space, using
170
+ a normal vector pointing towards the origin, and a constant distance from
171
+ the origin along the normal vector.</p>
172
+ </div>
173
+ <div class="refsect1">
174
+ <a name="graphene-Plane.functions_details"></a><h2>Functions</h2>
175
+ <div class="refsect2">
176
+ <a name="graphene-plane-alloc"></a><h3>graphene_plane_alloc ()</h3>
177
+ <pre class="programlisting"><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
178
+ graphene_plane_alloc (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
179
+ <p>Allocates a new <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> structure.</p>
180
+ <p>The contents of the returned structure are undefined.</p>
181
+ <p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
182
+ <div class="refsect3">
183
+ <a name="graphene-plane-alloc.returns"></a><h4>Returns</h4>
184
+ <p> the newly allocated <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a>.
185
+ Use <a class="link" href="graphene-Plane.html#graphene-plane-free" title="graphene_plane_free ()"><code class="function">graphene_plane_free()</code></a> to free the resources allocated by
186
+ this function. </p>
187
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
188
+ </div>
189
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
190
+ </div>
191
+ <hr>
192
+ <div class="refsect2">
193
+ <a name="graphene-plane-free"></a><h3>graphene_plane_free ()</h3>
194
+ <pre class="programlisting"><span class="returnvalue">void</span>
195
+ graphene_plane_free (<em class="parameter"><code><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>);</pre>
196
+ <p>Frees the resources allocated by <a class="link" href="graphene-Plane.html#graphene-plane-alloc" title="graphene_plane_alloc ()"><code class="function">graphene_plane_alloc()</code></a>.</p>
197
+ <div class="refsect3">
198
+ <a name="graphene-plane-free.parameters"></a><h4>Parameters</h4>
199
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
200
+ <colgroup>
201
+ <col width="150px" class="parameters_name">
202
+ <col class="parameters_description">
203
+ <col width="200px" class="parameters_annotations">
204
+ </colgroup>
205
+ <tbody><tr>
206
+ <td class="parameter_name"><p>p</p></td>
207
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a></p></td>
208
+ <td class="parameter_annotations"> </td>
209
+ </tr></tbody>
210
+ </table></div>
211
+ </div>
212
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
213
+ </div>
214
+ <hr>
215
+ <div class="refsect2">
216
+ <a name="graphene-plane-init"></a><h3>graphene_plane_init ()</h3>
217
+ <pre class="programlisting"><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
218
+ graphene_plane_init (<em class="parameter"><code><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>,
219
+ <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> *normal</code></em>,
220
+ <em class="parameter"><code><span class="type">float</span> constant</code></em>);</pre>
221
+ <p>Initializes the given <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> using the given <em class="parameter"><code>normal</code></em>
222
+ vector
223
+ and <em class="parameter"><code>constant</code></em>
224
+ values.</p>
225
+ <div class="refsect3">
226
+ <a name="graphene-plane-init.parameters"></a><h4>Parameters</h4>
227
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
228
+ <colgroup>
229
+ <col width="150px" class="parameters_name">
230
+ <col class="parameters_description">
231
+ <col width="200px" class="parameters_annotations">
232
+ </colgroup>
233
+ <tbody>
234
+ <tr>
235
+ <td class="parameter_name"><p>p</p></td>
236
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> to initialize</p></td>
237
+ <td class="parameter_annotations"> </td>
238
+ </tr>
239
+ <tr>
240
+ <td class="parameter_name"><p>normal</p></td>
241
+ <td class="parameter_description"><p> a normal vector defining the plane pointing towards the origin. </p></td>
242
+ <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>
243
+ </tr>
244
+ <tr>
245
+ <td class="parameter_name"><p>constant</p></td>
246
+ <td class="parameter_description"><p>the negative distance from the origin to the plane along the
247
+ normal vector</p></td>
248
+ <td class="parameter_annotations"> </td>
249
+ </tr>
250
+ </tbody>
251
+ </table></div>
252
+ </div>
253
+ <div class="refsect3">
254
+ <a name="graphene-plane-init.returns"></a><h4>Returns</h4>
255
+ <p> the initialized plane. </p>
256
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
257
+ </div>
258
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
259
+ </div>
260
+ <hr>
261
+ <div class="refsect2">
262
+ <a name="graphene-plane-init-from-vec4"></a><h3>graphene_plane_init_from_vec4 ()</h3>
263
+ <pre class="programlisting"><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
264
+ graphene_plane_init_from_vec4 (<em class="parameter"><code><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>,
265
+ <em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *src</code></em>);</pre>
266
+ <p>Initializes the given <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> using the components of
267
+ the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> vector.</p>
268
+ <div class="refsect3">
269
+ <a name="graphene-plane-init-from-vec4.parameters"></a><h4>Parameters</h4>
270
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
271
+ <colgroup>
272
+ <col width="150px" class="parameters_name">
273
+ <col class="parameters_description">
274
+ <col width="200px" class="parameters_annotations">
275
+ </colgroup>
276
+ <tbody>
277
+ <tr>
278
+ <td class="parameter_name"><p>p</p></td>
279
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> to initialize</p></td>
280
+ <td class="parameter_annotations"> </td>
281
+ </tr>
282
+ <tr>
283
+ <td class="parameter_name"><p>src</p></td>
284
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> containing the normal vector in its first
285
+ three components, and the distance in its fourth component</p></td>
286
+ <td class="parameter_annotations"> </td>
287
+ </tr>
288
+ </tbody>
289
+ </table></div>
290
+ </div>
291
+ <div class="refsect3">
292
+ <a name="graphene-plane-init-from-vec4.returns"></a><h4>Returns</h4>
293
+ <p> the initialized plane. </p>
294
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
295
+ </div>
296
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
297
+ </div>
298
+ <hr>
299
+ <div class="refsect2">
300
+ <a name="graphene-plane-init-from-plane"></a><h3>graphene_plane_init_from_plane ()</h3>
301
+ <pre class="programlisting"><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
302
+ graphene_plane_init_from_plane (<em class="parameter"><code><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>,
303
+ <em class="parameter"><code>const <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *src</code></em>);</pre>
304
+ <p>Initializes the given <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> using the normal
305
+ vector and constant of another <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a>.</p>
306
+ <div class="refsect3">
307
+ <a name="graphene-plane-init-from-plane.parameters"></a><h4>Parameters</h4>
308
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
309
+ <colgroup>
310
+ <col width="150px" class="parameters_name">
311
+ <col class="parameters_description">
312
+ <col width="200px" class="parameters_annotations">
313
+ </colgroup>
314
+ <tbody>
315
+ <tr>
316
+ <td class="parameter_name"><p>p</p></td>
317
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> to initialize</p></td>
318
+ <td class="parameter_annotations"> </td>
319
+ </tr>
320
+ <tr>
321
+ <td class="parameter_name"><p>src</p></td>
322
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a></p></td>
323
+ <td class="parameter_annotations"> </td>
324
+ </tr>
325
+ </tbody>
326
+ </table></div>
327
+ </div>
328
+ <div class="refsect3">
329
+ <a name="graphene-plane-init-from-plane.returns"></a><h4>Returns</h4>
330
+ <p> the initialized plane. </p>
331
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
332
+ </div>
333
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
334
+ </div>
335
+ <hr>
336
+ <div class="refsect2">
337
+ <a name="graphene-plane-init-from-point"></a><h3>graphene_plane_init_from_point ()</h3>
338
+ <pre class="programlisting"><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
339
+ graphene_plane_init_from_point (<em class="parameter"><code><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>,
340
+ <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> *normal</code></em>,
341
+ <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>
342
+ <p>Initializes the given <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> using the given normal vector
343
+ and an arbitrary co-planar point.</p>
344
+ <div class="refsect3">
345
+ <a name="graphene-plane-init-from-point.parameters"></a><h4>Parameters</h4>
346
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
347
+ <colgroup>
348
+ <col width="150px" class="parameters_name">
349
+ <col class="parameters_description">
350
+ <col width="200px" class="parameters_annotations">
351
+ </colgroup>
352
+ <tbody>
353
+ <tr>
354
+ <td class="parameter_name"><p>p</p></td>
355
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> to initialize</p></td>
356
+ <td class="parameter_annotations"> </td>
357
+ </tr>
358
+ <tr>
359
+ <td class="parameter_name"><p>normal</p></td>
360
+ <td class="parameter_description"><p>a normal vector defining the plane pointing towards the origin</p></td>
361
+ <td class="parameter_annotations"> </td>
362
+ </tr>
363
+ <tr>
364
+ <td class="parameter_name"><p>point</p></td>
365
+ <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>
366
+ <td class="parameter_annotations"> </td>
367
+ </tr>
368
+ </tbody>
369
+ </table></div>
370
+ </div>
371
+ <div class="refsect3">
372
+ <a name="graphene-plane-init-from-point.returns"></a><h4>Returns</h4>
373
+ <p> the initialized plane. </p>
374
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
375
+ </div>
376
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
377
+ </div>
378
+ <hr>
379
+ <div class="refsect2">
380
+ <a name="graphene-plane-init-from-points"></a><h3>graphene_plane_init_from_points ()</h3>
381
+ <pre class="programlisting"><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="returnvalue">graphene_plane_t</span></a> *
382
+ graphene_plane_init_from_points (<em class="parameter"><code><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>,
383
+ <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> *a</code></em>,
384
+ <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> *b</code></em>,
385
+ <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> *c</code></em>);</pre>
386
+ <p>Initializes the given <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> using the 3 provided co-planar
387
+ points.</p>
388
+ <p>The winding order is counter-clockwise, and determines which direction
389
+ the normal vector will point.</p>
390
+ <div class="refsect3">
391
+ <a name="graphene-plane-init-from-points.parameters"></a><h4>Parameters</h4>
392
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
393
+ <colgroup>
394
+ <col width="150px" class="parameters_name">
395
+ <col class="parameters_description">
396
+ <col width="200px" class="parameters_annotations">
397
+ </colgroup>
398
+ <tbody>
399
+ <tr>
400
+ <td class="parameter_name"><p>p</p></td>
401
+ <td class="parameter_description"><p>the <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> to initialize</p></td>
402
+ <td class="parameter_annotations"> </td>
403
+ </tr>
404
+ <tr>
405
+ <td class="parameter_name"><p>a</p></td>
406
+ <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>
407
+ <td class="parameter_annotations"> </td>
408
+ </tr>
409
+ <tr>
410
+ <td class="parameter_name"><p>b</p></td>
411
+ <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>
412
+ <td class="parameter_annotations"> </td>
413
+ </tr>
414
+ <tr>
415
+ <td class="parameter_name"><p>c</p></td>
416
+ <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>
417
+ <td class="parameter_annotations"> </td>
418
+ </tr>
419
+ </tbody>
420
+ </table></div>
421
+ </div>
422
+ <div class="refsect3">
423
+ <a name="graphene-plane-init-from-points.returns"></a><h4>Returns</h4>
424
+ <p> the initialized plane. </p>
425
+ <p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
426
+ </div>
427
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
428
+ </div>
429
+ <hr>
430
+ <div class="refsect2">
431
+ <a name="graphene-plane-normalize"></a><h3>graphene_plane_normalize ()</h3>
432
+ <pre class="programlisting"><span class="returnvalue">void</span>
433
+ graphene_plane_normalize (<em class="parameter"><code>const <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>,
434
+ <em class="parameter"><code><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *res</code></em>);</pre>
435
+ <p>Normalizes the vector and constant of a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a>.</p>
436
+ <div class="refsect3">
437
+ <a name="graphene-plane-normalize.parameters"></a><h4>Parameters</h4>
438
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
439
+ <colgroup>
440
+ <col width="150px" class="parameters_name">
441
+ <col class="parameters_description">
442
+ <col width="200px" class="parameters_annotations">
443
+ </colgroup>
444
+ <tbody>
445
+ <tr>
446
+ <td class="parameter_name"><p>p</p></td>
447
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a></p></td>
448
+ <td class="parameter_annotations"> </td>
449
+ </tr>
450
+ <tr>
451
+ <td class="parameter_name"><p>res</p></td>
452
+ <td class="parameter_description"><p> return location for the normalized plane. </p></td>
453
+ <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>
454
+ </tr>
455
+ </tbody>
456
+ </table></div>
457
+ </div>
458
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
459
+ </div>
460
+ <hr>
461
+ <div class="refsect2">
462
+ <a name="graphene-plane-negate"></a><h3>graphene_plane_negate ()</h3>
463
+ <pre class="programlisting"><span class="returnvalue">void</span>
464
+ graphene_plane_negate (<em class="parameter"><code>const <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>,
465
+ <em class="parameter"><code><a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *res</code></em>);</pre>
466
+ <p>Negates the normal vector and constant of a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a>, effectively
467
+ mirroring the plane across the origin.</p>
468
+ <div class="refsect3">
469
+ <a name="graphene-plane-negate.parameters"></a><h4>Parameters</h4>
470
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
471
+ <colgroup>
472
+ <col width="150px" class="parameters_name">
473
+ <col class="parameters_description">
474
+ <col width="200px" class="parameters_annotations">
475
+ </colgroup>
476
+ <tbody>
477
+ <tr>
478
+ <td class="parameter_name"><p>p</p></td>
479
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a></p></td>
480
+ <td class="parameter_annotations"> </td>
481
+ </tr>
482
+ <tr>
483
+ <td class="parameter_name"><p>res</p></td>
484
+ <td class="parameter_description"><p> return location for the negated plane. </p></td>
485
+ <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>
486
+ </tr>
487
+ </tbody>
488
+ </table></div>
489
+ </div>
490
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
491
+ </div>
492
+ <hr>
493
+ <div class="refsect2">
494
+ <a name="graphene-plane-equal"></a><h3>graphene_plane_equal ()</h3>
495
+ <pre class="programlisting"><span class="returnvalue">bool</span>
496
+ graphene_plane_equal (<em class="parameter"><code>const <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *a</code></em>,
497
+ <em class="parameter"><code>const <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *b</code></em>);</pre>
498
+ <p>Checks whether the two given <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> are equal.</p>
499
+ <div class="refsect3">
500
+ <a name="graphene-plane-equal.parameters"></a><h4>Parameters</h4>
501
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
502
+ <colgroup>
503
+ <col width="150px" class="parameters_name">
504
+ <col class="parameters_description">
505
+ <col width="200px" class="parameters_annotations">
506
+ </colgroup>
507
+ <tbody>
508
+ <tr>
509
+ <td class="parameter_name"><p>a</p></td>
510
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a></p></td>
511
+ <td class="parameter_annotations"> </td>
512
+ </tr>
513
+ <tr>
514
+ <td class="parameter_name"><p>b</p></td>
515
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a></p></td>
516
+ <td class="parameter_annotations"> </td>
517
+ </tr>
518
+ </tbody>
519
+ </table></div>
520
+ </div>
521
+ <div class="refsect3">
522
+ <a name="graphene-plane-equal.returns"></a><h4>Returns</h4>
523
+ <p> <code class="literal">true</code> if the given planes are equal</p>
524
+ </div>
525
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
526
+ </div>
527
+ <hr>
528
+ <div class="refsect2">
529
+ <a name="graphene-plane-distance"></a><h3>graphene_plane_distance ()</h3>
530
+ <pre class="programlisting"><span class="returnvalue">float</span>
531
+ graphene_plane_distance (<em class="parameter"><code>const <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>,
532
+ <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>
533
+ <p>Computes the distance of <em class="parameter"><code>point</code></em>
534
+ from a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a>.</p>
535
+ <div class="refsect3">
536
+ <a name="graphene-plane-distance.parameters"></a><h4>Parameters</h4>
537
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
538
+ <colgroup>
539
+ <col width="150px" class="parameters_name">
540
+ <col class="parameters_description">
541
+ <col width="200px" class="parameters_annotations">
542
+ </colgroup>
543
+ <tbody>
544
+ <tr>
545
+ <td class="parameter_name"><p>p</p></td>
546
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a></p></td>
547
+ <td class="parameter_annotations"> </td>
548
+ </tr>
549
+ <tr>
550
+ <td class="parameter_name"><p>point</p></td>
551
+ <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>
552
+ <td class="parameter_annotations"> </td>
553
+ </tr>
554
+ </tbody>
555
+ </table></div>
556
+ </div>
557
+ <div class="refsect3">
558
+ <a name="graphene-plane-distance.returns"></a><h4>Returns</h4>
559
+ <p> the distance of the given <a class="link" href="graphene-Point3D.html#graphene-point3d-t" title="graphene_point3d_t"><span class="type">graphene_point3d_t</span></a> from the plane</p>
560
+ </div>
561
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
562
+ </div>
563
+ <hr>
564
+ <div class="refsect2">
565
+ <a name="graphene-plane-get-normal"></a><h3>graphene_plane_get_normal ()</h3>
566
+ <pre class="programlisting"><span class="returnvalue">void</span>
567
+ graphene_plane_get_normal (<em class="parameter"><code>const <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>,
568
+ <em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> *normal</code></em>);</pre>
569
+ <p>Retrieves the normal vector pointing towards the origin of the
570
+ given <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a>.</p>
571
+ <div class="refsect3">
572
+ <a name="graphene-plane-get-normal.parameters"></a><h4>Parameters</h4>
573
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
574
+ <colgroup>
575
+ <col width="150px" class="parameters_name">
576
+ <col class="parameters_description">
577
+ <col width="200px" class="parameters_annotations">
578
+ </colgroup>
579
+ <tbody>
580
+ <tr>
581
+ <td class="parameter_name"><p>p</p></td>
582
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a></p></td>
583
+ <td class="parameter_annotations"> </td>
584
+ </tr>
585
+ <tr>
586
+ <td class="parameter_name"><p>normal</p></td>
587
+ <td class="parameter_description"><p> return location for the normal vector. </p></td>
588
+ <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>
589
+ </tr>
590
+ </tbody>
591
+ </table></div>
592
+ </div>
593
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
594
+ </div>
595
+ <hr>
596
+ <div class="refsect2">
597
+ <a name="graphene-plane-get-constant"></a><h3>graphene_plane_get_constant ()</h3>
598
+ <pre class="programlisting"><span class="returnvalue">float</span>
599
+ graphene_plane_get_constant (<em class="parameter"><code>const <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> *p</code></em>);</pre>
600
+ <p>Retrieves the distance along the normal vector of the
601
+ given <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a> from the origin.</p>
602
+ <div class="refsect3">
603
+ <a name="graphene-plane-get-constant.parameters"></a><h4>Parameters</h4>
604
+ <div class="informaltable"><table class="informaltable" width="100%" border="0">
605
+ <colgroup>
606
+ <col width="150px" class="parameters_name">
607
+ <col class="parameters_description">
608
+ <col width="200px" class="parameters_annotations">
609
+ </colgroup>
610
+ <tbody><tr>
611
+ <td class="parameter_name"><p>p</p></td>
612
+ <td class="parameter_description"><p>a <a class="link" href="graphene-Plane.html#graphene-plane-t" title="graphene_plane_t"><span class="type">graphene_plane_t</span></a></p></td>
613
+ <td class="parameter_annotations"> </td>
614
+ </tr></tbody>
615
+ </table></div>
616
+ </div>
617
+ <div class="refsect3">
618
+ <a name="graphene-plane-get-constant.returns"></a><h4>Returns</h4>
619
+ <p> the constant value of the plane</p>
620
+ </div>
621
+ <p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
622
+ </div>
623
+ </div>
624
+ <div class="refsect1">
625
+ <a name="graphene-Plane.other_details"></a><h2>Types and Values</h2>
626
+ <div class="refsect2">
627
+ <a name="graphene-plane-t"></a><h3>graphene_plane_t</h3>
628
+ <pre class="programlisting">typedef struct {
629
+ } graphene_plane_t;
630
+ </pre>
631
+ <p>A 2D plane that extends infinitely in a 3D volume.</p>
632
+ <p>The contents of the <code class="literal">graphene_plane_t</code> are private, and should not be
633
+ modified directly.</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>