pango 3.1.1-x86-mingw32 → 3.1.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +27 -5
- data/ext/pango/depend +2 -2
- data/ext/pango/extconf.rb +32 -28
- data/ext/pango/pango.def +0 -16
- data/ext/pango/rb-pango-attr-list.c +64 -0
- data/ext/pango/rb-pango-attribute.c +147 -0
- data/ext/pango/rb-pango-context.c +79 -0
- data/ext/pango/{rbpangoconversions.h → rb-pango-conversions.h} +4 -6
- data/ext/pango/rb-pango-private.h +27 -0
- data/ext/pango/rb-pango.c +32 -0
- data/ext/pango/rb-pango.h +29 -0
- data/extconf.rb +25 -9
- data/lib/2.2/pango.so +0 -0
- data/lib/2.3/pango.so +0 -0
- data/lib/2.4/pango.so +0 -0
- data/lib/pango.rb +24 -68
- data/lib/pango/cairo-loader.rb +63 -0
- data/lib/pango/color.rb +31 -0
- data/lib/pango/deprecated.rb +37 -0
- data/lib/pango/font-description.rb +29 -0
- data/lib/pango/language.rb +29 -0
- data/lib/pango/layout.rb +41 -0
- data/lib/pango/loader.rb +87 -0
- data/lib/pango/markup.rb +31 -0
- data/lib/pango/matrix.rb +64 -0
- data/lib/pango/rectangle.rb +28 -0
- data/lib/pango/version.rb +30 -0
- data/test/pango-test-utils.rb +7 -7
- data/test/run-test.rb +34 -8
- data/test/test-attr-list.rb +28 -0
- data/test/test-color.rb +1 -3
- data/test/test-context.rb +4 -4
- data/test/test-enum.rb +37 -0
- data/test/test-font-description.rb +31 -0
- data/test/test-language.rb +2 -1
- data/test/test-layout.rb +12 -0
- data/test/test-markup.rb +30 -0
- data/test/test-matrix.rb +131 -5
- data/test/test-rectangle.rb +16 -3
- data/vendor/local/bin/derb.exe +0 -0
- data/vendor/local/bin/genbrk.exe +0 -0
- data/vendor/local/bin/genccode.exe +0 -0
- data/vendor/local/bin/gencfu.exe +0 -0
- data/vendor/local/bin/gencmn.exe +0 -0
- data/vendor/local/bin/gencnval.exe +0 -0
- data/vendor/local/bin/gendict.exe +0 -0
- data/vendor/local/bin/gennorm2.exe +0 -0
- data/vendor/local/bin/genrb.exe +0 -0
- data/vendor/local/bin/gensprep.exe +0 -0
- data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
- data/vendor/local/bin/hb-shape.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/icuinfo.exe +0 -0
- data/vendor/local/bin/icupkg.exe +0 -0
- data/vendor/local/bin/libgraphene-1.0-0.dll +0 -0
- data/vendor/local/bin/libharfbuzz-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/makeconv.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/bin/pkgdata.exe +0 -0
- data/vendor/local/bin/uconv.exe +0 -0
- data/vendor/local/include/graphene-1.0/graphene-box.h +148 -0
- data/vendor/local/include/graphene-1.0/graphene-euler.h +140 -0
- data/vendor/local/include/graphene-1.0/graphene-frustum.h +93 -0
- data/vendor/local/include/graphene-1.0/graphene-gobject.h +119 -0
- data/vendor/local/include/graphene-1.0/graphene-macros.h +105 -0
- data/vendor/local/include/graphene-1.0/graphene-matrix.h +288 -0
- data/vendor/local/include/graphene-1.0/graphene-plane.h +99 -0
- data/vendor/local/include/graphene-1.0/graphene-point.h +120 -0
- data/vendor/local/include/graphene-1.0/graphene-point3d.h +140 -0
- data/vendor/local/include/graphene-1.0/graphene-quad.h +80 -0
- data/vendor/local/include/graphene-1.0/graphene-quaternion.h +136 -0
- data/vendor/local/include/graphene-1.0/graphene-ray.h +98 -0
- data/vendor/local/include/graphene-1.0/graphene-rect.h +180 -0
- data/vendor/local/include/graphene-1.0/graphene-simd4f.h +1870 -0
- data/vendor/local/include/graphene-1.0/graphene-simd4x4f.h +1045 -0
- data/vendor/local/include/graphene-1.0/graphene-size.h +105 -0
- data/vendor/local/include/graphene-1.0/graphene-sphere.h +97 -0
- data/vendor/local/include/graphene-1.0/graphene-triangle.h +105 -0
- data/vendor/local/include/graphene-1.0/graphene-types.h +88 -0
- data/vendor/local/include/graphene-1.0/graphene-vec2.h +130 -0
- data/vendor/local/include/graphene-1.0/graphene-vec3.h +155 -0
- data/vendor/local/include/graphene-1.0/graphene-vec4.h +156 -0
- data/vendor/local/include/graphene-1.0/graphene-version-macros.h +185 -0
- data/vendor/local/include/graphene-1.0/graphene-version.h +70 -0
- data/vendor/local/include/graphene-1.0/graphene.h +61 -0
- data/vendor/local/include/harfbuzz/hb-common.h +36 -0
- data/vendor/local/include/harfbuzz/hb-font.h +18 -1
- data/vendor/local/include/harfbuzz/hb-ot-var.h +105 -0
- data/vendor/local/include/harfbuzz/hb-ot.h +1 -0
- data/vendor/local/include/harfbuzz/hb-shape.h +0 -16
- data/vendor/local/include/harfbuzz/hb-version.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-engine.h +6 -6
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/include/pango-1.0/pango/pango-layout.h +1 -1
- data/vendor/local/lib/girepository-1.0/Graphene-1.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
- data/vendor/local/lib/graphene-1.0/include/graphene-config.h +89 -0
- data/vendor/local/lib/icudt.dll +0 -0
- data/vendor/local/lib/icudt58.dll +0 -0
- data/vendor/local/lib/icuin.dll +0 -0
- data/vendor/local/lib/icuin58.dll +0 -0
- data/vendor/local/lib/icuio.dll +0 -0
- data/vendor/local/lib/icuio58.dll +0 -0
- data/vendor/local/lib/icutest.dll +0 -0
- data/vendor/local/lib/icutest58.dll +0 -0
- data/vendor/local/lib/icutu.dll +0 -0
- data/vendor/local/lib/icutu58.dll +0 -0
- data/vendor/local/lib/icuuc.dll +0 -0
- data/vendor/local/lib/icuuc58.dll +0 -0
- data/vendor/local/lib/libgraphene-1.0.dll.a +0 -0
- data/vendor/local/lib/libgraphene-1.0.la +41 -0
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +1 -1
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +1 -1
- data/vendor/local/lib/libicudt.dll.a +0 -0
- data/vendor/local/lib/libicudt58.dll +0 -0
- data/vendor/local/lib/libicuin.dll.a +0 -0
- data/vendor/local/lib/libicuio.dll.a +0 -0
- data/vendor/local/lib/libicutest.dll.a +0 -0
- data/vendor/local/lib/libicutu.dll.a +0 -0
- data/vendor/local/lib/libicuuc.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +1 -1
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +1 -1
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +1 -1
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +1 -1
- data/vendor/local/lib/pkgconfig/graphene-1.0.pc +15 -0
- data/vendor/local/lib/pkgconfig/graphene-gobject-1.0.pc +15 -0
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/share/gir-1.0/Graphene-1.0.gir +8180 -0
- data/vendor/local/share/gir-1.0/Pango-1.0.gir +12 -16
- data/vendor/local/share/gtk-doc/html/graphene/annotation-glossary.html +57 -0
- data/vendor/local/share/gtk-doc/html/graphene/api-index.html +1985 -0
- data/vendor/local/share/gtk-doc/html/graphene/ch01.html +97 -0
- data/vendor/local/share/gtk-doc/html/graphene/deprecated-api-index.html +34 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Box.html +1252 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Euler.html +886 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Frustum.html +527 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-GObject-integration.html +147 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Matrix.html +2959 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Plane.html +641 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Point.html +689 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Point3D.html +916 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Quad.html +418 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Quaternion.html +1056 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Ray.html +596 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Rectangle.html +1483 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-matrix.html +1475 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-vector.html +3046 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Size.html +489 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Sphere.html +641 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Triangle.html +705 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Vectors.html +3715 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Versioning-information.html +104 -0
- data/vendor/local/share/gtk-doc/html/graphene/graphene.devhelp2 +534 -0
- data/vendor/local/share/gtk-doc/html/graphene/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/index.html +107 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix03.html +1313 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix04.html +582 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix05.html +151 -0
- data/vendor/local/share/gtk-doc/html/graphene/ix06.html +34 -0
- data/vendor/local/share/gtk-doc/html/graphene/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/{pango/api-index-1-40.html → graphene/object-tree.html} +14 -11
- data/vendor/local/share/gtk-doc/html/graphene/rectangle-intersection.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/rectangle-union.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/rectangle.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/style.css +479 -0
- data/vendor/local/share/gtk-doc/html/graphene/triangle-barycentric.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-2-3.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/{api-index-1-4-0.html → api-index-1-3-3.html} +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +104 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +9 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +156 -40
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +73 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +1 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +49 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-math.html +174 -177
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +40 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +28 -10
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/index.html +2 -23
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +69 -69
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +5 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +5 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +8 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +3 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/pango.html +1 -1
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +1 -1
- data/vendor/local/share/man/man1/pango-view.1 +2 -2
- metadata +119 -78
- data/README +0 -32
- data/ext/pango/rbpango.c +0 -356
- data/ext/pango/rbpango.h +0 -95
- data/ext/pango/rbpangoanalysis.c +0 -218
- data/ext/pango/rbpangoattribute.c +0 -506
- data/ext/pango/rbpangoattriterator.c +0 -141
- data/ext/pango/rbpangoattrlist.c +0 -101
- data/ext/pango/rbpangocairo.c +0 -122
- data/ext/pango/rbpangocairocontext.c +0 -131
- data/ext/pango/rbpangocolor.c +0 -120
- data/ext/pango/rbpangocontext.c +0 -344
- data/ext/pango/rbpangocoverage.c +0 -106
- data/ext/pango/rbpangoengine.c +0 -73
- data/ext/pango/rbpangofont.c +0 -110
- data/ext/pango/rbpangofontdescription.c +0 -282
- data/ext/pango/rbpangofontface.c +0 -73
- data/ext/pango/rbpangofontfamily.c +0 -79
- data/ext/pango/rbpangofontmap.c +0 -102
- data/ext/pango/rbpangofontmetrics.c +0 -85
- data/ext/pango/rbpangofontset.c +0 -69
- data/ext/pango/rbpangofontsetsimple.c +0 -60
- data/ext/pango/rbpangoglyphinfo.c +0 -123
- data/ext/pango/rbpangoglyphitem.c +0 -125
- data/ext/pango/rbpangoglyphstring.c +0 -151
- data/ext/pango/rbpangogravity.c +0 -54
- data/ext/pango/rbpangoitem.c +0 -95
- data/ext/pango/rbpangolanguage.c +0 -94
- data/ext/pango/rbpangolayout.c +0 -583
- data/ext/pango/rbpangolayoutiter.c +0 -189
- data/ext/pango/rbpangolayoutline.c +0 -243
- data/ext/pango/rbpangologattr.c +0 -109
- data/ext/pango/rbpangomatrix.c +0 -143
- data/ext/pango/rbpangoprivate.h +0 -49
- data/ext/pango/rbpangorectangle.c +0 -170
- data/ext/pango/rbpangorenderer.c +0 -193
- data/ext/pango/rbpangoscript.c +0 -84
- data/ext/pango/rbpangoscriptiter.c +0 -92
- data/ext/pango/rbpangotabarray.c +0 -128
- data/sample/attribute.rb +0 -82
- data/sample/break.rb +0 -28
- data/sample/gdk_layout.rb +0 -27
- data/sample/glyphstring.rb +0 -61
- data/sample/item.rb +0 -37
- data/sample/label.rb +0 -23
- data/sample/layout.rb +0 -102
- data/sample/pango_cairo.rb +0 -66
- data/sample/parse.rb +0 -33
- data/sample/sample.txt +0 -10
- data/sample/script.rb +0 -23
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +0 -134
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +0 -48
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +0 -63
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +0 -227
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +0 -151
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +0 -121
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +0 -86
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +0 -123
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +0 -96
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +0 -45
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +0 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +0 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +0 -52
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +0 -41
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +0 -38
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-38.html +0 -79
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +0 -200
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +0 -164
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +0 -170
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +0 -441
@@ -0,0 +1,140 @@
|
|
1
|
+
/* graphene-point3d.h: Point in 3D space
|
2
|
+
*
|
3
|
+
* Copyright 2014 Emmanuele Bassi
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef __GRAPHENE_POINT3D_H__
|
25
|
+
#define __GRAPHENE_POINT3D_H__
|
26
|
+
|
27
|
+
#if !defined(GRAPHENE_H_INSIDE) && !defined(GRAPHENE_COMPILATION)
|
28
|
+
#error "Only graphene.h can be included directly."
|
29
|
+
#endif
|
30
|
+
|
31
|
+
#include "graphene-types.h"
|
32
|
+
|
33
|
+
GRAPHENE_BEGIN_DECLS
|
34
|
+
|
35
|
+
/**
|
36
|
+
* GRAPHENE_POINT3D_INIT:
|
37
|
+
* @_x: the X coordinate
|
38
|
+
* @_y: the Y coordinate
|
39
|
+
* @_z: the Z coordinate
|
40
|
+
*
|
41
|
+
* Initializes a #graphene_point3d_t to the given coordinates when declaring it.
|
42
|
+
*
|
43
|
+
* Since: 1.0
|
44
|
+
*/
|
45
|
+
#define GRAPHENE_POINT3D_INIT(_x,_y,_z) (graphene_point3d_t) { .x = (_x), .y = (_y), .z = (_z) }
|
46
|
+
|
47
|
+
/**
|
48
|
+
* GRAPHENE_POINT3D_INIT_ZERO:
|
49
|
+
*
|
50
|
+
* Initializes a #graphene_point3d_t to (0, 0, 0) when declaring it.
|
51
|
+
*
|
52
|
+
* Since: 1.0
|
53
|
+
*/
|
54
|
+
#define GRAPHENE_POINT3D_INIT_ZERO GRAPHENE_POINT3D_INIT (0.f, 0.f, 0.f)
|
55
|
+
|
56
|
+
/**
|
57
|
+
* graphene_point3d_t:
|
58
|
+
* @x: the X coordinate
|
59
|
+
* @y: the Y coordinate
|
60
|
+
* @z: the Z coordinate
|
61
|
+
*
|
62
|
+
* A point with three components: X, Y, and Z.
|
63
|
+
*
|
64
|
+
* Since: 1.0
|
65
|
+
*/
|
66
|
+
struct _graphene_point3d_t
|
67
|
+
{
|
68
|
+
float x;
|
69
|
+
float y;
|
70
|
+
float z;
|
71
|
+
};
|
72
|
+
|
73
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
74
|
+
graphene_point3d_t * graphene_point3d_alloc (void);
|
75
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
76
|
+
void graphene_point3d_free (graphene_point3d_t *p);
|
77
|
+
|
78
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
79
|
+
graphene_point3d_t * graphene_point3d_init (graphene_point3d_t *p,
|
80
|
+
float x,
|
81
|
+
float y,
|
82
|
+
float z);
|
83
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
84
|
+
graphene_point3d_t * graphene_point3d_init_from_point (graphene_point3d_t *p,
|
85
|
+
const graphene_point3d_t *src);
|
86
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
87
|
+
graphene_point3d_t * graphene_point3d_init_from_vec3 (graphene_point3d_t *p,
|
88
|
+
const graphene_vec3_t *v);
|
89
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
90
|
+
void graphene_point3d_to_vec3 (const graphene_point3d_t *p,
|
91
|
+
graphene_vec3_t *v);
|
92
|
+
|
93
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
94
|
+
bool graphene_point3d_equal (const graphene_point3d_t *a,
|
95
|
+
const graphene_point3d_t *b);
|
96
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
97
|
+
bool graphene_point3d_near (const graphene_point3d_t *a,
|
98
|
+
const graphene_point3d_t *b,
|
99
|
+
float epsilon);
|
100
|
+
|
101
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
102
|
+
void graphene_point3d_scale (const graphene_point3d_t *p,
|
103
|
+
float factor,
|
104
|
+
graphene_point3d_t *res);
|
105
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
106
|
+
void graphene_point3d_cross (const graphene_point3d_t *a,
|
107
|
+
const graphene_point3d_t *b,
|
108
|
+
graphene_point3d_t *res);
|
109
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
110
|
+
float graphene_point3d_dot (const graphene_point3d_t *a,
|
111
|
+
const graphene_point3d_t *b);
|
112
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
113
|
+
float graphene_point3d_length (const graphene_point3d_t *p);
|
114
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
115
|
+
void graphene_point3d_normalize (const graphene_point3d_t *p,
|
116
|
+
graphene_point3d_t *res);
|
117
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
118
|
+
float graphene_point3d_distance (const graphene_point3d_t *a,
|
119
|
+
const graphene_point3d_t *b,
|
120
|
+
graphene_vec3_t *delta);
|
121
|
+
|
122
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
123
|
+
void graphene_point3d_interpolate (const graphene_point3d_t *a,
|
124
|
+
const graphene_point3d_t *b,
|
125
|
+
double factor,
|
126
|
+
graphene_point3d_t *res);
|
127
|
+
|
128
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
129
|
+
void graphene_point3d_normalize_viewport (const graphene_point3d_t *p,
|
130
|
+
const graphene_rect_t *viewport,
|
131
|
+
float z_near,
|
132
|
+
float z_far,
|
133
|
+
graphene_point3d_t *res);
|
134
|
+
|
135
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
136
|
+
const graphene_point3d_t * graphene_point3d_zero (void);
|
137
|
+
|
138
|
+
GRAPHENE_END_DECLS
|
139
|
+
|
140
|
+
#endif /* __GRAPHENE_POINT3D_H__ */
|
@@ -0,0 +1,80 @@
|
|
1
|
+
/* graphene-quad.h: Quad
|
2
|
+
*
|
3
|
+
* Copyright 2014 Emmanuele Bassi
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef __GRAPHENE_QUAD_H__
|
25
|
+
#define __GRAPHENE_QUAD_H__
|
26
|
+
|
27
|
+
#include "graphene-types.h"
|
28
|
+
#include "graphene-point.h"
|
29
|
+
|
30
|
+
GRAPHENE_BEGIN_DECLS
|
31
|
+
|
32
|
+
/**
|
33
|
+
* graphene_quad_t:
|
34
|
+
*
|
35
|
+
* A 4 vertex quadrilateral, as represented by four #graphene_point_t.
|
36
|
+
*
|
37
|
+
* The contents of a #graphene_quad_t are private and should never be
|
38
|
+
* accessed directly.
|
39
|
+
*
|
40
|
+
* Since: 1.0
|
41
|
+
*/
|
42
|
+
struct _graphene_quad_t
|
43
|
+
{
|
44
|
+
/*< private >*/
|
45
|
+
GRAPHENE_PRIVATE_FIELD (graphene_point_t, points[4]);
|
46
|
+
};
|
47
|
+
|
48
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
49
|
+
graphene_quad_t * graphene_quad_alloc (void);
|
50
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
51
|
+
void graphene_quad_free (graphene_quad_t *q);
|
52
|
+
|
53
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
54
|
+
graphene_quad_t * graphene_quad_init (graphene_quad_t *q,
|
55
|
+
const graphene_point_t *p1,
|
56
|
+
const graphene_point_t *p2,
|
57
|
+
const graphene_point_t *p3,
|
58
|
+
const graphene_point_t *p4);
|
59
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
60
|
+
graphene_quad_t * graphene_quad_init_from_rect (graphene_quad_t *q,
|
61
|
+
const graphene_rect_t *r);
|
62
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
63
|
+
graphene_quad_t * graphene_quad_init_from_points (graphene_quad_t *q,
|
64
|
+
const graphene_point_t points[]);
|
65
|
+
|
66
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
67
|
+
bool graphene_quad_contains (const graphene_quad_t *q,
|
68
|
+
const graphene_point_t *p);
|
69
|
+
|
70
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
71
|
+
void graphene_quad_bounds (const graphene_quad_t *q,
|
72
|
+
graphene_rect_t *r);
|
73
|
+
|
74
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
75
|
+
const graphene_point_t *graphene_quad_get_point (const graphene_quad_t *q,
|
76
|
+
unsigned int index_);
|
77
|
+
|
78
|
+
GRAPHENE_END_DECLS
|
79
|
+
|
80
|
+
#endif /* __GRAPHENE_QUAD_H__ */
|
@@ -0,0 +1,136 @@
|
|
1
|
+
/* graphene-quaternion.h: Quaternion
|
2
|
+
*
|
3
|
+
* Copyright 2014 Emmanuele Bassi
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef __GRAPHENE_QUATERNION_H__
|
25
|
+
#define __GRAPHENE_QUATERNION_H__
|
26
|
+
|
27
|
+
#if !defined(GRAPHENE_H_INSIDE) && !defined(GRAPHENE_COMPILATION)
|
28
|
+
#error "Only graphene.h can be included directly."
|
29
|
+
#endif
|
30
|
+
|
31
|
+
#include "graphene-types.h"
|
32
|
+
#include "graphene-vec4.h"
|
33
|
+
|
34
|
+
GRAPHENE_BEGIN_DECLS
|
35
|
+
|
36
|
+
/**
|
37
|
+
* graphene_quaternion_t:
|
38
|
+
*
|
39
|
+
* A quaternion.
|
40
|
+
*
|
41
|
+
* The contents of the #graphene_quaternion_t structure are private
|
42
|
+
* and should never be accessed directly.
|
43
|
+
*
|
44
|
+
* Since: 1.0
|
45
|
+
*/
|
46
|
+
struct _graphene_quaternion_t
|
47
|
+
{
|
48
|
+
/*< private >*/
|
49
|
+
GRAPHENE_PRIVATE_FIELD (float, x);
|
50
|
+
GRAPHENE_PRIVATE_FIELD (float, y);
|
51
|
+
GRAPHENE_PRIVATE_FIELD (float, z);
|
52
|
+
GRAPHENE_PRIVATE_FIELD (float, w);
|
53
|
+
};
|
54
|
+
|
55
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
56
|
+
graphene_quaternion_t * graphene_quaternion_alloc (void);
|
57
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
58
|
+
void graphene_quaternion_free (graphene_quaternion_t *q);
|
59
|
+
|
60
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
61
|
+
graphene_quaternion_t * graphene_quaternion_init (graphene_quaternion_t *q,
|
62
|
+
float x,
|
63
|
+
float y,
|
64
|
+
float z,
|
65
|
+
float w);
|
66
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
67
|
+
graphene_quaternion_t * graphene_quaternion_init_identity (graphene_quaternion_t *q);
|
68
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
69
|
+
graphene_quaternion_t * graphene_quaternion_init_from_quaternion (graphene_quaternion_t *q,
|
70
|
+
const graphene_quaternion_t *src);
|
71
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
72
|
+
graphene_quaternion_t * graphene_quaternion_init_from_vec4 (graphene_quaternion_t *q,
|
73
|
+
const graphene_vec4_t *src);
|
74
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
75
|
+
graphene_quaternion_t * graphene_quaternion_init_from_matrix (graphene_quaternion_t *q,
|
76
|
+
const graphene_matrix_t *m);
|
77
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
78
|
+
graphene_quaternion_t * graphene_quaternion_init_from_angles (graphene_quaternion_t *q,
|
79
|
+
float deg_x,
|
80
|
+
float deg_y,
|
81
|
+
float deg_z);
|
82
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
83
|
+
graphene_quaternion_t * graphene_quaternion_init_from_radians (graphene_quaternion_t *q,
|
84
|
+
float rad_x,
|
85
|
+
float rad_y,
|
86
|
+
float rad_z);
|
87
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
88
|
+
graphene_quaternion_t * graphene_quaternion_init_from_angle_vec3 (graphene_quaternion_t *q,
|
89
|
+
float angle,
|
90
|
+
const graphene_vec3_t *axis);
|
91
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
92
|
+
graphene_quaternion_t * graphene_quaternion_init_from_euler (graphene_quaternion_t *q,
|
93
|
+
const graphene_euler_t *e);
|
94
|
+
|
95
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
96
|
+
void graphene_quaternion_to_vec4 (const graphene_quaternion_t *q,
|
97
|
+
graphene_vec4_t *res);
|
98
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
99
|
+
void graphene_quaternion_to_matrix (const graphene_quaternion_t *q,
|
100
|
+
graphene_matrix_t *m);
|
101
|
+
GRAPHENE_AVAILABLE_IN_1_2
|
102
|
+
void graphene_quaternion_to_angles (const graphene_quaternion_t *q,
|
103
|
+
float *deg_x,
|
104
|
+
float *deg_y,
|
105
|
+
float *deg_z);
|
106
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
107
|
+
void graphene_quaternion_to_radians (const graphene_quaternion_t *q,
|
108
|
+
float *rad_x,
|
109
|
+
float *rad_y,
|
110
|
+
float *rad_z);
|
111
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
112
|
+
void graphene_quaternion_to_angle_vec3 (const graphene_quaternion_t *q,
|
113
|
+
float *angle,
|
114
|
+
graphene_vec3_t *axis);
|
115
|
+
|
116
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
117
|
+
bool graphene_quaternion_equal (const graphene_quaternion_t *a,
|
118
|
+
const graphene_quaternion_t *b);
|
119
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
120
|
+
float graphene_quaternion_dot (const graphene_quaternion_t *a,
|
121
|
+
const graphene_quaternion_t *b);
|
122
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
123
|
+
void graphene_quaternion_invert (const graphene_quaternion_t *q,
|
124
|
+
graphene_quaternion_t *res);
|
125
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
126
|
+
void graphene_quaternion_normalize (const graphene_quaternion_t *q,
|
127
|
+
graphene_quaternion_t *res);
|
128
|
+
GRAPHENE_AVAILABLE_IN_1_0
|
129
|
+
void graphene_quaternion_slerp (const graphene_quaternion_t *a,
|
130
|
+
const graphene_quaternion_t *b,
|
131
|
+
float factor,
|
132
|
+
graphene_quaternion_t *res);
|
133
|
+
|
134
|
+
GRAPHENE_END_DECLS
|
135
|
+
|
136
|
+
#endif /* __GRAPHENE_QUATERNION_H__ */
|
@@ -0,0 +1,98 @@
|
|
1
|
+
/* graphene-ray.h: A ray emitted from an origin in a given direction
|
2
|
+
*
|
3
|
+
* Copyright 2015 Emmanuele Bassi
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
#ifndef __GRAPHENE_RAY_H__
|
25
|
+
#define __GRAPHENE_RAY_H__
|
26
|
+
|
27
|
+
#if !defined(GRAPHENE_H_INSIDE) && !defined(GRAPHENE_COMPILATION)
|
28
|
+
#error "Only graphene.h can be included directly."
|
29
|
+
#endif
|
30
|
+
|
31
|
+
#include "graphene-types.h"
|
32
|
+
#include "graphene-vec3.h"
|
33
|
+
|
34
|
+
GRAPHENE_BEGIN_DECLS
|
35
|
+
|
36
|
+
/**
|
37
|
+
* graphene_ray_t:
|
38
|
+
*
|
39
|
+
* A ray emitted from an origin in a given direction.
|
40
|
+
*
|
41
|
+
* The contents of the `graphene_ray_t` structure are private, and should not
|
42
|
+
* be modified directly.
|
43
|
+
*
|
44
|
+
* Since: 1.4
|
45
|
+
*/
|
46
|
+
struct _graphene_ray_t
|
47
|
+
{
|
48
|
+
/*< private >*/
|
49
|
+
GRAPHENE_PRIVATE_FIELD (graphene_vec3_t, origin);
|
50
|
+
GRAPHENE_PRIVATE_FIELD (graphene_vec3_t, direction);
|
51
|
+
};
|
52
|
+
|
53
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
54
|
+
graphene_ray_t * graphene_ray_alloc (void);
|
55
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
56
|
+
void graphene_ray_free (graphene_ray_t *r);
|
57
|
+
|
58
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
59
|
+
graphene_ray_t * graphene_ray_init (graphene_ray_t *r,
|
60
|
+
const graphene_point3d_t *origin,
|
61
|
+
const graphene_vec3_t *direction);
|
62
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
63
|
+
graphene_ray_t * graphene_ray_init_from_ray (graphene_ray_t *r,
|
64
|
+
const graphene_ray_t *src);
|
65
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
66
|
+
graphene_ray_t * graphene_ray_init_from_vec3 (graphene_ray_t *r,
|
67
|
+
const graphene_vec3_t *origin,
|
68
|
+
const graphene_vec3_t *direction);
|
69
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
70
|
+
void graphene_ray_get_origin (const graphene_ray_t *r,
|
71
|
+
graphene_point3d_t *origin);
|
72
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
73
|
+
void graphene_ray_get_direction (const graphene_ray_t *r,
|
74
|
+
graphene_vec3_t *direction);
|
75
|
+
|
76
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
77
|
+
void graphene_ray_get_position_at (const graphene_ray_t *r,
|
78
|
+
float t,
|
79
|
+
graphene_point3d_t *position);
|
80
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
81
|
+
float graphene_ray_get_distance_to_point (const graphene_ray_t *r,
|
82
|
+
const graphene_point3d_t *p);
|
83
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
84
|
+
float graphene_ray_get_distance_to_plane (const graphene_ray_t *r,
|
85
|
+
const graphene_plane_t *p);
|
86
|
+
|
87
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
88
|
+
bool graphene_ray_equal (const graphene_ray_t *a,
|
89
|
+
const graphene_ray_t *b);
|
90
|
+
|
91
|
+
GRAPHENE_AVAILABLE_IN_1_4
|
92
|
+
void graphene_ray_get_closest_point_to_point (const graphene_ray_t *r,
|
93
|
+
const graphene_point3d_t *p,
|
94
|
+
graphene_point3d_t *res);
|
95
|
+
|
96
|
+
GRAPHENE_END_DECLS
|
97
|
+
|
98
|
+
#endif /* __GRAPHENE_RAY_H__ */
|