pango 3.2.1-x64-mingw32 → 3.2.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +19 -3
- 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/2.5/pango.so +0 -0
- data/lib/pango/markup.rb +1 -0
- data/vendor/local/bin/derb.exe +0 -0
- data/vendor/local/bin/fribidi.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-subset.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/icu-config +1 -1
- data/vendor/local/bin/icuinfo.exe +0 -0
- data/vendor/local/bin/icupkg.exe +0 -0
- data/vendor/local/bin/libfribidi-0.dll +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/libharfbuzz-subset-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/fribidi/fribidi-arabic.h +81 -0
- data/vendor/local/include/fribidi/fribidi-begindecls.h +3 -0
- data/vendor/local/include/fribidi/fribidi-bidi-types-list.h +96 -0
- data/vendor/local/include/fribidi/fribidi-bidi-types.h +405 -0
- data/vendor/local/include/fribidi/fribidi-bidi.h +142 -0
- data/vendor/local/include/fribidi/fribidi-brackets.h +89 -0
- data/vendor/local/include/fribidi/fribidi-char-sets-list.h +54 -0
- data/vendor/local/include/fribidi/fribidi-char-sets.h +106 -0
- data/vendor/local/include/fribidi/fribidi-common.h +146 -0
- data/vendor/local/include/fribidi/fribidi-config.h +23 -0
- data/vendor/local/include/fribidi/fribidi-deprecated.h +244 -0
- data/vendor/local/include/fribidi/fribidi-enddecls.h +3 -0
- data/vendor/local/include/fribidi/fribidi-flags.h +72 -0
- data/vendor/local/include/fribidi/fribidi-joining-types-list.h +44 -0
- data/vendor/local/include/fribidi/fribidi-joining-types.h +249 -0
- data/vendor/local/include/fribidi/fribidi-joining.h +74 -0
- data/vendor/local/include/fribidi/fribidi-mirroring.h +86 -0
- data/vendor/local/include/fribidi/fribidi-shape.h +71 -0
- data/vendor/local/include/fribidi/fribidi-types.h +83 -0
- data/vendor/local/include/fribidi/fribidi-unicode-version.h +10 -0
- data/vendor/local/include/fribidi/fribidi-unicode.h +105 -0
- data/vendor/local/include/fribidi/fribidi.h +63 -0
- data/vendor/local/include/graphene-1.0/graphene-macros.h +6 -0
- data/vendor/local/include/graphene-1.0/graphene-version-macros.h +18 -2
- data/vendor/local/include/graphene-1.0/graphene-version.h +2 -2
- data/vendor/local/include/harfbuzz/hb-blob.h +4 -1
- data/vendor/local/include/harfbuzz/hb-buffer.h +39 -8
- data/vendor/local/include/harfbuzz/hb-common.h +1 -1
- data/vendor/local/include/harfbuzz/hb-deprecated.h +4 -0
- data/vendor/local/include/harfbuzz/hb-face.h +0 -1
- data/vendor/local/include/harfbuzz/hb-font.h +1 -1
- data/vendor/local/include/harfbuzz/hb-ot-layout.h +17 -0
- data/vendor/local/include/harfbuzz/hb-set.h +15 -7
- data/vendor/local/include/harfbuzz/hb-subset-glyf.hh +40 -0
- data/vendor/local/include/harfbuzz/hb-subset-plan.hh +85 -0
- data/vendor/local/include/harfbuzz/hb-subset-private.hh +62 -0
- data/vendor/local/include/harfbuzz/hb-subset.h +83 -0
- data/vendor/local/include/harfbuzz/hb-version.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-enum-types.h +1 -1
- data/vendor/local/include/pango-1.0/pango/pango-features.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-font.h +14 -3
- data/vendor/local/include/pango-1.0/pango/pangofc-fontmap.h +13 -0
- data/vendor/local/lib/cmake/harfbuzz/harfbuzz-config.cmake +82 -0
- 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 +13 -4
- data/vendor/local/lib/icu/58.2/Makefile.inc +1 -1
- data/vendor/local/lib/icu/58.2/pkgdata.inc +2 -2
- data/vendor/local/lib/icu/Makefile.inc +1 -1
- data/vendor/local/lib/icu/pkgdata.inc +2 -2
- 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/libfribidi.dll.a +0 -0
- data/vendor/local/lib/libfribidi.la +41 -0
- data/vendor/local/lib/libgraphene-1.0.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +4 -4
- data/vendor/local/lib/libharfbuzz-subset.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz-subset.la +41 -0
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +4 -4
- data/vendor/local/lib/libicudt.dll.a +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 +5 -5
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +5 -5
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +5 -5
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +5 -5
- data/vendor/local/lib/pkgconfig/fribidi.pc +12 -0
- data/vendor/local/lib/pkgconfig/graphene-1.0.pc +16 -10
- data/vendor/local/lib/pkgconfig/graphene-gobject-1.0.pc +16 -10
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +5 -5
- data/vendor/local/lib/pkgconfig/harfbuzz-subset.pc +12 -0
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +5 -5
- data/vendor/local/lib/pkgconfig/icu-i18n.pc +1 -1
- data/vendor/local/lib/pkgconfig/icu-io.pc +1 -1
- data/vendor/local/lib/pkgconfig/icu-uc.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangocairo.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangoft2.pc +2 -2
- data/vendor/local/lib/pkgconfig/pangowin32.pc +2 -2
- data/vendor/local/libexec/installed-tests/graphene-1.0/box.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/euler.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/frustum.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/matrix.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/plane.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/point.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/point3d.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/quad.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/quaternion.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/ray.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/rect.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/simd.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/size.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/sphere.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/triangle.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/vec2.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/vec3.exe +0 -0
- data/vendor/local/libexec/installed-tests/graphene-1.0/vec4.exe +0 -0
- data/vendor/local/share/gir-1.0/Graphene-1.0.gir +1 -1
- data/vendor/local/share/gir-1.0/Pango-1.0.gir +82 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/HarfBuzz.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/HarfBuzz.svg +277 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/a-clustering-example-for-levels-0-and-1.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/adding-text-to-the-buffer.html +4 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-10.html +3 -3
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-11.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-2.html +33 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-20.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-22.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-28.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-30.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-31.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-38.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-39.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-41.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-42.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-5.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-7.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-8.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-0-5.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-1-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-1-3.html +2 -2
- 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-3-3.html +4 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-4-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-4-3.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-5-0.html +4 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-6-0.html +38 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +302 -18
- data/vendor/local/share/gtk-doc/html/harfbuzz/buffers-language-script-and-direction.html +6 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/building.html +6 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/ch08.html +4 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/clusters.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/customizing-unicode-functions.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +8 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/fonts-and-faces.html +4 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Buffers.html +265 -205
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +42 -35
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +76 -31
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +25 -710
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +31 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +36 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +79 -35
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +187 -112
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +31 -17
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +11 -11
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +784 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +5 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +5 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-font.html +4 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +48 -41
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-math.html +47 -32
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-shape.html +7 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +3 -3
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +3 -3
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +153 -68
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +48 -41
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +58 -48
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +5 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +10 -14
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +4 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +99 -164
- data/vendor/local/share/gtk-doc/html/harfbuzz/hello-harfbuzz.html +21 -21
- data/vendor/local/share/gtk-doc/html/harfbuzz/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +11 -10
- data/vendor/local/share/gtk-doc/html/harfbuzz/install-harfbuzz.html +6 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/level-2.html +4 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +36 -3
- data/vendor/local/share/gtk-doc/html/harfbuzz/plans-and-caching.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt01.html +9 -9
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +6 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/reordering-in-levels-0-and-1.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/setting-buffer-properties.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/shaping-and-shape-plans.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +4 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/the-distinction-between-levels-0-and-1.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-harfbuzzs-native-opentype-implementation.html +4 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-your-own-font-functions.html +3 -3
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-about-the-other-scripts.html +2 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-is-harfbuzz.html +11 -11
- data/vendor/local/share/gtk-doc/html/harfbuzz/why-is-it-called-harfbuzz.html +10 -10
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +6 -6
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +4 -4
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +18 -18
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +28 -28
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +20 -20
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +14 -2
- data/vendor/local/share/gtk-doc/html/pango/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +14 -14
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +101 -101
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +11 -11
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +10 -10
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +275 -133
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +17 -17
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +85 -85
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +168 -168
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +86 -86
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +8 -8
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +92 -92
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +46 -46
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +29 -29
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +164 -164
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +85 -85
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +6 -6
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +11 -11
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +20 -20
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +29 -29
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +7 -7
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +4 -0
- data/vendor/local/share/gtk-doc/html/pango/pango.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +2 -2
- data/vendor/local/share/installed-tests/graphene-1.0/box.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/euler.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/frustum.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/matrix.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/plane.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/point.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/point3d.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/quad.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/quaternion.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/ray.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/rect.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/simd.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/size.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/sphere.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/triangle.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/vec2.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/vec3.test +3 -0
- data/vendor/local/share/installed-tests/graphene-1.0/vec4.test +3 -0
- data/vendor/local/share/license/fribidi/fribidi/AUTHORS +40 -0
- data/vendor/local/share/license/fribidi/fribidi/COPYING +504 -0
- data/vendor/local/share/man/man1/pango-view.1 +1 -113
- metadata +87 -52
- data/vendor/local/lib/libgraphene-1.0.la +0 -41
- data/vendor/local/share/gtk-doc/html/graphene/annotation-glossary.html +0 -57
- data/vendor/local/share/gtk-doc/html/graphene/api-index.html +0 -1985
- data/vendor/local/share/gtk-doc/html/graphene/ch01.html +0 -97
- data/vendor/local/share/gtk-doc/html/graphene/deprecated-api-index.html +0 -34
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Box.html +0 -1252
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Euler.html +0 -886
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Frustum.html +0 -527
- data/vendor/local/share/gtk-doc/html/graphene/graphene-GObject-integration.html +0 -147
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Matrix.html +0 -2959
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Plane.html +0 -641
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Point.html +0 -689
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Point3D.html +0 -916
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Quad.html +0 -418
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Quaternion.html +0 -1056
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Ray.html +0 -596
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Rectangle.html +0 -1483
- data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-matrix.html +0 -1475
- data/vendor/local/share/gtk-doc/html/graphene/graphene-SIMD-vector.html +0 -3046
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Size.html +0 -489
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Sphere.html +0 -641
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Triangle.html +0 -705
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Vectors.html +0 -3715
- data/vendor/local/share/gtk-doc/html/graphene/graphene-Versioning-information.html +0 -104
- data/vendor/local/share/gtk-doc/html/graphene/graphene.devhelp2 +0 -534
- data/vendor/local/share/gtk-doc/html/graphene/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/graphene/index.html +0 -107
- data/vendor/local/share/gtk-doc/html/graphene/ix03.html +0 -1313
- data/vendor/local/share/gtk-doc/html/graphene/ix04.html +0 -582
- data/vendor/local/share/gtk-doc/html/graphene/ix05.html +0 -151
- data/vendor/local/share/gtk-doc/html/graphene/ix06.html +0 -34
- 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/graphene/object-tree.html +0 -32
- 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 +0 -479
- 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
@@ -1,3715 +0,0 @@
|
|
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>Vectors: 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-SIMD-matrix.html" title="SIMD matrix">
|
10
|
-
<link rel="next" href="graphene-Matrix.html" title="Matrix">
|
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-Vectors.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-SIMD-matrix.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
23
|
-
<td><a accesskey="n" href="graphene-Matrix.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-Vectors"></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-Vectors.top_of_page"></a>Vectors</span></h2>
|
30
|
-
<p>Vectors — Vectors in 2, 3, and 4 dimensions</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-Vectors.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-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
45
|
-
</td>
|
46
|
-
<td class="function_name">
|
47
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-alloc" title="graphene_vec2_alloc ()">graphene_vec2_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-Vectors.html#graphene-vec2-free" title="graphene_vec2_free ()">graphene_vec2_free</a> <span class="c_punctuation">()</span>
|
56
|
-
</td>
|
57
|
-
</tr>
|
58
|
-
<tr>
|
59
|
-
<td class="function_type">
|
60
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
61
|
-
</td>
|
62
|
-
<td class="function_name">
|
63
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-init" title="graphene_vec2_init ()">graphene_vec2_init</a> <span class="c_punctuation">()</span>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
<tr>
|
67
|
-
<td class="function_type">
|
68
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
69
|
-
</td>
|
70
|
-
<td class="function_name">
|
71
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-init-from-vec2" title="graphene_vec2_init_from_vec2 ()">graphene_vec2_init_from_vec2</a> <span class="c_punctuation">()</span>
|
72
|
-
</td>
|
73
|
-
</tr>
|
74
|
-
<tr>
|
75
|
-
<td class="function_type">
|
76
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
77
|
-
</td>
|
78
|
-
<td class="function_name">
|
79
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-init-from-float" title="graphene_vec2_init_from_float ()">graphene_vec2_init_from_float</a> <span class="c_punctuation">()</span>
|
80
|
-
</td>
|
81
|
-
</tr>
|
82
|
-
<tr>
|
83
|
-
<td class="function_type">
|
84
|
-
<span class="returnvalue">void</span>
|
85
|
-
</td>
|
86
|
-
<td class="function_name">
|
87
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-to-float" title="graphene_vec2_to_float ()">graphene_vec2_to_float</a> <span class="c_punctuation">()</span>
|
88
|
-
</td>
|
89
|
-
</tr>
|
90
|
-
<tr>
|
91
|
-
<td class="function_type">
|
92
|
-
<span class="returnvalue">void</span>
|
93
|
-
</td>
|
94
|
-
<td class="function_name">
|
95
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-add" title="graphene_vec2_add ()">graphene_vec2_add</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-Vectors.html#graphene-vec2-subtract" title="graphene_vec2_subtract ()">graphene_vec2_subtract</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-Vectors.html#graphene-vec2-multiply" title="graphene_vec2_multiply ()">graphene_vec2_multiply</a> <span class="c_punctuation">()</span>
|
112
|
-
</td>
|
113
|
-
</tr>
|
114
|
-
<tr>
|
115
|
-
<td class="function_type">
|
116
|
-
<span class="returnvalue">void</span>
|
117
|
-
</td>
|
118
|
-
<td class="function_name">
|
119
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-divide" title="graphene_vec2_divide ()">graphene_vec2_divide</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-Vectors.html#graphene-vec2-dot" title="graphene_vec2_dot ()">graphene_vec2_dot</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-Vectors.html#graphene-vec2-scale" title="graphene_vec2_scale ()">graphene_vec2_scale</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-Vectors.html#graphene-vec2-length" title="graphene_vec2_length ()">graphene_vec2_length</a> <span class="c_punctuation">()</span>
|
144
|
-
</td>
|
145
|
-
</tr>
|
146
|
-
<tr>
|
147
|
-
<td class="function_type">
|
148
|
-
<span class="returnvalue">void</span>
|
149
|
-
</td>
|
150
|
-
<td class="function_name">
|
151
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-normalize" title="graphene_vec2_normalize ()">graphene_vec2_normalize</a> <span class="c_punctuation">()</span>
|
152
|
-
</td>
|
153
|
-
</tr>
|
154
|
-
<tr>
|
155
|
-
<td class="function_type">
|
156
|
-
<span class="returnvalue">void</span>
|
157
|
-
</td>
|
158
|
-
<td class="function_name">
|
159
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-negate" title="graphene_vec2_negate ()">graphene_vec2_negate</a> <span class="c_punctuation">()</span>
|
160
|
-
</td>
|
161
|
-
</tr>
|
162
|
-
<tr>
|
163
|
-
<td class="function_type">
|
164
|
-
<span class="returnvalue">bool</span>
|
165
|
-
</td>
|
166
|
-
<td class="function_name">
|
167
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-equal" title="graphene_vec2_equal ()">graphene_vec2_equal</a> <span class="c_punctuation">()</span>
|
168
|
-
</td>
|
169
|
-
</tr>
|
170
|
-
<tr>
|
171
|
-
<td class="function_type">
|
172
|
-
<span class="returnvalue">bool</span>
|
173
|
-
</td>
|
174
|
-
<td class="function_name">
|
175
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-near" title="graphene_vec2_near ()">graphene_vec2_near</a> <span class="c_punctuation">()</span>
|
176
|
-
</td>
|
177
|
-
</tr>
|
178
|
-
<tr>
|
179
|
-
<td class="function_type">
|
180
|
-
<span class="returnvalue">void</span>
|
181
|
-
</td>
|
182
|
-
<td class="function_name">
|
183
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-min" title="graphene_vec2_min ()">graphene_vec2_min</a> <span class="c_punctuation">()</span>
|
184
|
-
</td>
|
185
|
-
</tr>
|
186
|
-
<tr>
|
187
|
-
<td class="function_type">
|
188
|
-
<span class="returnvalue">void</span>
|
189
|
-
</td>
|
190
|
-
<td class="function_name">
|
191
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-max" title="graphene_vec2_max ()">graphene_vec2_max</a> <span class="c_punctuation">()</span>
|
192
|
-
</td>
|
193
|
-
</tr>
|
194
|
-
<tr>
|
195
|
-
<td class="function_type">
|
196
|
-
<span class="returnvalue">float</span>
|
197
|
-
</td>
|
198
|
-
<td class="function_name">
|
199
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-get-x" title="graphene_vec2_get_x ()">graphene_vec2_get_x</a> <span class="c_punctuation">()</span>
|
200
|
-
</td>
|
201
|
-
</tr>
|
202
|
-
<tr>
|
203
|
-
<td class="function_type">
|
204
|
-
<span class="returnvalue">float</span>
|
205
|
-
</td>
|
206
|
-
<td class="function_name">
|
207
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-get-y" title="graphene_vec2_get_y ()">graphene_vec2_get_y</a> <span class="c_punctuation">()</span>
|
208
|
-
</td>
|
209
|
-
</tr>
|
210
|
-
<tr>
|
211
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
212
|
-
</td>
|
213
|
-
<td class="function_name">
|
214
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-zero" title="graphene_vec2_zero ()">graphene_vec2_zero</a> <span class="c_punctuation">()</span>
|
215
|
-
</td>
|
216
|
-
</tr>
|
217
|
-
<tr>
|
218
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
219
|
-
</td>
|
220
|
-
<td class="function_name">
|
221
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-one" title="graphene_vec2_one ()">graphene_vec2_one</a> <span class="c_punctuation">()</span>
|
222
|
-
</td>
|
223
|
-
</tr>
|
224
|
-
<tr>
|
225
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
226
|
-
</td>
|
227
|
-
<td class="function_name">
|
228
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-x-axis" title="graphene_vec2_x_axis ()">graphene_vec2_x_axis</a> <span class="c_punctuation">()</span>
|
229
|
-
</td>
|
230
|
-
</tr>
|
231
|
-
<tr>
|
232
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
233
|
-
</td>
|
234
|
-
<td class="function_name">
|
235
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-y-axis" title="graphene_vec2_y_axis ()">graphene_vec2_y_axis</a> <span class="c_punctuation">()</span>
|
236
|
-
</td>
|
237
|
-
</tr>
|
238
|
-
<tr>
|
239
|
-
<td class="function_type">
|
240
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
241
|
-
</td>
|
242
|
-
<td class="function_name">
|
243
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-alloc" title="graphene_vec3_alloc ()">graphene_vec3_alloc</a> <span class="c_punctuation">()</span>
|
244
|
-
</td>
|
245
|
-
</tr>
|
246
|
-
<tr>
|
247
|
-
<td class="function_type">
|
248
|
-
<span class="returnvalue">void</span>
|
249
|
-
</td>
|
250
|
-
<td class="function_name">
|
251
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-free" title="graphene_vec3_free ()">graphene_vec3_free</a> <span class="c_punctuation">()</span>
|
252
|
-
</td>
|
253
|
-
</tr>
|
254
|
-
<tr>
|
255
|
-
<td class="function_type">
|
256
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
257
|
-
</td>
|
258
|
-
<td class="function_name">
|
259
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-init" title="graphene_vec3_init ()">graphene_vec3_init</a> <span class="c_punctuation">()</span>
|
260
|
-
</td>
|
261
|
-
</tr>
|
262
|
-
<tr>
|
263
|
-
<td class="function_type">
|
264
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
265
|
-
</td>
|
266
|
-
<td class="function_name">
|
267
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-init-from-vec3" title="graphene_vec3_init_from_vec3 ()">graphene_vec3_init_from_vec3</a> <span class="c_punctuation">()</span>
|
268
|
-
</td>
|
269
|
-
</tr>
|
270
|
-
<tr>
|
271
|
-
<td class="function_type">
|
272
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
273
|
-
</td>
|
274
|
-
<td class="function_name">
|
275
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-init-from-float" title="graphene_vec3_init_from_float ()">graphene_vec3_init_from_float</a> <span class="c_punctuation">()</span>
|
276
|
-
</td>
|
277
|
-
</tr>
|
278
|
-
<tr>
|
279
|
-
<td class="function_type">
|
280
|
-
<span class="returnvalue">void</span>
|
281
|
-
</td>
|
282
|
-
<td class="function_name">
|
283
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-to-float" title="graphene_vec3_to_float ()">graphene_vec3_to_float</a> <span class="c_punctuation">()</span>
|
284
|
-
</td>
|
285
|
-
</tr>
|
286
|
-
<tr>
|
287
|
-
<td class="function_type">
|
288
|
-
<span class="returnvalue">void</span>
|
289
|
-
</td>
|
290
|
-
<td class="function_name">
|
291
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-add" title="graphene_vec3_add ()">graphene_vec3_add</a> <span class="c_punctuation">()</span>
|
292
|
-
</td>
|
293
|
-
</tr>
|
294
|
-
<tr>
|
295
|
-
<td class="function_type">
|
296
|
-
<span class="returnvalue">void</span>
|
297
|
-
</td>
|
298
|
-
<td class="function_name">
|
299
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-subtract" title="graphene_vec3_subtract ()">graphene_vec3_subtract</a> <span class="c_punctuation">()</span>
|
300
|
-
</td>
|
301
|
-
</tr>
|
302
|
-
<tr>
|
303
|
-
<td class="function_type">
|
304
|
-
<span class="returnvalue">void</span>
|
305
|
-
</td>
|
306
|
-
<td class="function_name">
|
307
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-multiply" title="graphene_vec3_multiply ()">graphene_vec3_multiply</a> <span class="c_punctuation">()</span>
|
308
|
-
</td>
|
309
|
-
</tr>
|
310
|
-
<tr>
|
311
|
-
<td class="function_type">
|
312
|
-
<span class="returnvalue">void</span>
|
313
|
-
</td>
|
314
|
-
<td class="function_name">
|
315
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-divide" title="graphene_vec3_divide ()">graphene_vec3_divide</a> <span class="c_punctuation">()</span>
|
316
|
-
</td>
|
317
|
-
</tr>
|
318
|
-
<tr>
|
319
|
-
<td class="function_type">
|
320
|
-
<span class="returnvalue">void</span>
|
321
|
-
</td>
|
322
|
-
<td class="function_name">
|
323
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-cross" title="graphene_vec3_cross ()">graphene_vec3_cross</a> <span class="c_punctuation">()</span>
|
324
|
-
</td>
|
325
|
-
</tr>
|
326
|
-
<tr>
|
327
|
-
<td class="function_type">
|
328
|
-
<span class="returnvalue">float</span>
|
329
|
-
</td>
|
330
|
-
<td class="function_name">
|
331
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-dot" title="graphene_vec3_dot ()">graphene_vec3_dot</a> <span class="c_punctuation">()</span>
|
332
|
-
</td>
|
333
|
-
</tr>
|
334
|
-
<tr>
|
335
|
-
<td class="function_type">
|
336
|
-
<span class="returnvalue">void</span>
|
337
|
-
</td>
|
338
|
-
<td class="function_name">
|
339
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-scale" title="graphene_vec3_scale ()">graphene_vec3_scale</a> <span class="c_punctuation">()</span>
|
340
|
-
</td>
|
341
|
-
</tr>
|
342
|
-
<tr>
|
343
|
-
<td class="function_type">
|
344
|
-
<span class="returnvalue">float</span>
|
345
|
-
</td>
|
346
|
-
<td class="function_name">
|
347
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-length" title="graphene_vec3_length ()">graphene_vec3_length</a> <span class="c_punctuation">()</span>
|
348
|
-
</td>
|
349
|
-
</tr>
|
350
|
-
<tr>
|
351
|
-
<td class="function_type">
|
352
|
-
<span class="returnvalue">void</span>
|
353
|
-
</td>
|
354
|
-
<td class="function_name">
|
355
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-normalize" title="graphene_vec3_normalize ()">graphene_vec3_normalize</a> <span class="c_punctuation">()</span>
|
356
|
-
</td>
|
357
|
-
</tr>
|
358
|
-
<tr>
|
359
|
-
<td class="function_type">
|
360
|
-
<span class="returnvalue">void</span>
|
361
|
-
</td>
|
362
|
-
<td class="function_name">
|
363
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-negate" title="graphene_vec3_negate ()">graphene_vec3_negate</a> <span class="c_punctuation">()</span>
|
364
|
-
</td>
|
365
|
-
</tr>
|
366
|
-
<tr>
|
367
|
-
<td class="function_type">
|
368
|
-
<span class="returnvalue">bool</span>
|
369
|
-
</td>
|
370
|
-
<td class="function_name">
|
371
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-equal" title="graphene_vec3_equal ()">graphene_vec3_equal</a> <span class="c_punctuation">()</span>
|
372
|
-
</td>
|
373
|
-
</tr>
|
374
|
-
<tr>
|
375
|
-
<td class="function_type">
|
376
|
-
<span class="returnvalue">bool</span>
|
377
|
-
</td>
|
378
|
-
<td class="function_name">
|
379
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-near" title="graphene_vec3_near ()">graphene_vec3_near</a> <span class="c_punctuation">()</span>
|
380
|
-
</td>
|
381
|
-
</tr>
|
382
|
-
<tr>
|
383
|
-
<td class="function_type">
|
384
|
-
<span class="returnvalue">void</span>
|
385
|
-
</td>
|
386
|
-
<td class="function_name">
|
387
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-min" title="graphene_vec3_min ()">graphene_vec3_min</a> <span class="c_punctuation">()</span>
|
388
|
-
</td>
|
389
|
-
</tr>
|
390
|
-
<tr>
|
391
|
-
<td class="function_type">
|
392
|
-
<span class="returnvalue">void</span>
|
393
|
-
</td>
|
394
|
-
<td class="function_name">
|
395
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-max" title="graphene_vec3_max ()">graphene_vec3_max</a> <span class="c_punctuation">()</span>
|
396
|
-
</td>
|
397
|
-
</tr>
|
398
|
-
<tr>
|
399
|
-
<td class="function_type">
|
400
|
-
<span class="returnvalue">float</span>
|
401
|
-
</td>
|
402
|
-
<td class="function_name">
|
403
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-get-x" title="graphene_vec3_get_x ()">graphene_vec3_get_x</a> <span class="c_punctuation">()</span>
|
404
|
-
</td>
|
405
|
-
</tr>
|
406
|
-
<tr>
|
407
|
-
<td class="function_type">
|
408
|
-
<span class="returnvalue">float</span>
|
409
|
-
</td>
|
410
|
-
<td class="function_name">
|
411
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-get-y" title="graphene_vec3_get_y ()">graphene_vec3_get_y</a> <span class="c_punctuation">()</span>
|
412
|
-
</td>
|
413
|
-
</tr>
|
414
|
-
<tr>
|
415
|
-
<td class="function_type">
|
416
|
-
<span class="returnvalue">float</span>
|
417
|
-
</td>
|
418
|
-
<td class="function_name">
|
419
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-get-z" title="graphene_vec3_get_z ()">graphene_vec3_get_z</a> <span class="c_punctuation">()</span>
|
420
|
-
</td>
|
421
|
-
</tr>
|
422
|
-
<tr>
|
423
|
-
<td class="function_type">
|
424
|
-
<span class="returnvalue">void</span>
|
425
|
-
</td>
|
426
|
-
<td class="function_name">
|
427
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-get-xy" title="graphene_vec3_get_xy ()">graphene_vec3_get_xy</a> <span class="c_punctuation">()</span>
|
428
|
-
</td>
|
429
|
-
</tr>
|
430
|
-
<tr>
|
431
|
-
<td class="function_type">
|
432
|
-
<span class="returnvalue">void</span>
|
433
|
-
</td>
|
434
|
-
<td class="function_name">
|
435
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-get-xy0" title="graphene_vec3_get_xy0 ()">graphene_vec3_get_xy0</a> <span class="c_punctuation">()</span>
|
436
|
-
</td>
|
437
|
-
</tr>
|
438
|
-
<tr>
|
439
|
-
<td class="function_type">
|
440
|
-
<span class="returnvalue">void</span>
|
441
|
-
</td>
|
442
|
-
<td class="function_name">
|
443
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-get-xyz0" title="graphene_vec3_get_xyz0 ()">graphene_vec3_get_xyz0</a> <span class="c_punctuation">()</span>
|
444
|
-
</td>
|
445
|
-
</tr>
|
446
|
-
<tr>
|
447
|
-
<td class="function_type">
|
448
|
-
<span class="returnvalue">void</span>
|
449
|
-
</td>
|
450
|
-
<td class="function_name">
|
451
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-get-xyz1" title="graphene_vec3_get_xyz1 ()">graphene_vec3_get_xyz1</a> <span class="c_punctuation">()</span>
|
452
|
-
</td>
|
453
|
-
</tr>
|
454
|
-
<tr>
|
455
|
-
<td class="function_type">
|
456
|
-
<span class="returnvalue">void</span>
|
457
|
-
</td>
|
458
|
-
<td class="function_name">
|
459
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-get-xyzw" title="graphene_vec3_get_xyzw ()">graphene_vec3_get_xyzw</a> <span class="c_punctuation">()</span>
|
460
|
-
</td>
|
461
|
-
</tr>
|
462
|
-
<tr>
|
463
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
464
|
-
</td>
|
465
|
-
<td class="function_name">
|
466
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-zero" title="graphene_vec3_zero ()">graphene_vec3_zero</a> <span class="c_punctuation">()</span>
|
467
|
-
</td>
|
468
|
-
</tr>
|
469
|
-
<tr>
|
470
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
471
|
-
</td>
|
472
|
-
<td class="function_name">
|
473
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-one" title="graphene_vec3_one ()">graphene_vec3_one</a> <span class="c_punctuation">()</span>
|
474
|
-
</td>
|
475
|
-
</tr>
|
476
|
-
<tr>
|
477
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
478
|
-
</td>
|
479
|
-
<td class="function_name">
|
480
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-x-axis" title="graphene_vec3_x_axis ()">graphene_vec3_x_axis</a> <span class="c_punctuation">()</span>
|
481
|
-
</td>
|
482
|
-
</tr>
|
483
|
-
<tr>
|
484
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
485
|
-
</td>
|
486
|
-
<td class="function_name">
|
487
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-y-axis" title="graphene_vec3_y_axis ()">graphene_vec3_y_axis</a> <span class="c_punctuation">()</span>
|
488
|
-
</td>
|
489
|
-
</tr>
|
490
|
-
<tr>
|
491
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
492
|
-
</td>
|
493
|
-
<td class="function_name">
|
494
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-z-axis" title="graphene_vec3_z_axis ()">graphene_vec3_z_axis</a> <span class="c_punctuation">()</span>
|
495
|
-
</td>
|
496
|
-
</tr>
|
497
|
-
<tr>
|
498
|
-
<td class="function_type">
|
499
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
500
|
-
</td>
|
501
|
-
<td class="function_name">
|
502
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-alloc" title="graphene_vec4_alloc ()">graphene_vec4_alloc</a> <span class="c_punctuation">()</span>
|
503
|
-
</td>
|
504
|
-
</tr>
|
505
|
-
<tr>
|
506
|
-
<td class="function_type">
|
507
|
-
<span class="returnvalue">void</span>
|
508
|
-
</td>
|
509
|
-
<td class="function_name">
|
510
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-free" title="graphene_vec4_free ()">graphene_vec4_free</a> <span class="c_punctuation">()</span>
|
511
|
-
</td>
|
512
|
-
</tr>
|
513
|
-
<tr>
|
514
|
-
<td class="function_type">
|
515
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
516
|
-
</td>
|
517
|
-
<td class="function_name">
|
518
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-init" title="graphene_vec4_init ()">graphene_vec4_init</a> <span class="c_punctuation">()</span>
|
519
|
-
</td>
|
520
|
-
</tr>
|
521
|
-
<tr>
|
522
|
-
<td class="function_type">
|
523
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
524
|
-
</td>
|
525
|
-
<td class="function_name">
|
526
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-init-from-vec4" title="graphene_vec4_init_from_vec4 ()">graphene_vec4_init_from_vec4</a> <span class="c_punctuation">()</span>
|
527
|
-
</td>
|
528
|
-
</tr>
|
529
|
-
<tr>
|
530
|
-
<td class="function_type">
|
531
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
532
|
-
</td>
|
533
|
-
<td class="function_name">
|
534
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-init-from-vec3" title="graphene_vec4_init_from_vec3 ()">graphene_vec4_init_from_vec3</a> <span class="c_punctuation">()</span>
|
535
|
-
</td>
|
536
|
-
</tr>
|
537
|
-
<tr>
|
538
|
-
<td class="function_type">
|
539
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
540
|
-
</td>
|
541
|
-
<td class="function_name">
|
542
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-init-from-vec2" title="graphene_vec4_init_from_vec2 ()">graphene_vec4_init_from_vec2</a> <span class="c_punctuation">()</span>
|
543
|
-
</td>
|
544
|
-
</tr>
|
545
|
-
<tr>
|
546
|
-
<td class="function_type">
|
547
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
548
|
-
</td>
|
549
|
-
<td class="function_name">
|
550
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-init-from-float" title="graphene_vec4_init_from_float ()">graphene_vec4_init_from_float</a> <span class="c_punctuation">()</span>
|
551
|
-
</td>
|
552
|
-
</tr>
|
553
|
-
<tr>
|
554
|
-
<td class="function_type">
|
555
|
-
<span class="returnvalue">void</span>
|
556
|
-
</td>
|
557
|
-
<td class="function_name">
|
558
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-to-float" title="graphene_vec4_to_float ()">graphene_vec4_to_float</a> <span class="c_punctuation">()</span>
|
559
|
-
</td>
|
560
|
-
</tr>
|
561
|
-
<tr>
|
562
|
-
<td class="function_type">
|
563
|
-
<span class="returnvalue">void</span>
|
564
|
-
</td>
|
565
|
-
<td class="function_name">
|
566
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-add" title="graphene_vec4_add ()">graphene_vec4_add</a> <span class="c_punctuation">()</span>
|
567
|
-
</td>
|
568
|
-
</tr>
|
569
|
-
<tr>
|
570
|
-
<td class="function_type">
|
571
|
-
<span class="returnvalue">void</span>
|
572
|
-
</td>
|
573
|
-
<td class="function_name">
|
574
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-subtract" title="graphene_vec4_subtract ()">graphene_vec4_subtract</a> <span class="c_punctuation">()</span>
|
575
|
-
</td>
|
576
|
-
</tr>
|
577
|
-
<tr>
|
578
|
-
<td class="function_type">
|
579
|
-
<span class="returnvalue">void</span>
|
580
|
-
</td>
|
581
|
-
<td class="function_name">
|
582
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-multiply" title="graphene_vec4_multiply ()">graphene_vec4_multiply</a> <span class="c_punctuation">()</span>
|
583
|
-
</td>
|
584
|
-
</tr>
|
585
|
-
<tr>
|
586
|
-
<td class="function_type">
|
587
|
-
<span class="returnvalue">void</span>
|
588
|
-
</td>
|
589
|
-
<td class="function_name">
|
590
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-divide" title="graphene_vec4_divide ()">graphene_vec4_divide</a> <span class="c_punctuation">()</span>
|
591
|
-
</td>
|
592
|
-
</tr>
|
593
|
-
<tr>
|
594
|
-
<td class="function_type">
|
595
|
-
<span class="returnvalue">float</span>
|
596
|
-
</td>
|
597
|
-
<td class="function_name">
|
598
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-dot" title="graphene_vec4_dot ()">graphene_vec4_dot</a> <span class="c_punctuation">()</span>
|
599
|
-
</td>
|
600
|
-
</tr>
|
601
|
-
<tr>
|
602
|
-
<td class="function_type">
|
603
|
-
<span class="returnvalue">void</span>
|
604
|
-
</td>
|
605
|
-
<td class="function_name">
|
606
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-scale" title="graphene_vec4_scale ()">graphene_vec4_scale</a> <span class="c_punctuation">()</span>
|
607
|
-
</td>
|
608
|
-
</tr>
|
609
|
-
<tr>
|
610
|
-
<td class="function_type">
|
611
|
-
<span class="returnvalue">float</span>
|
612
|
-
</td>
|
613
|
-
<td class="function_name">
|
614
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-length" title="graphene_vec4_length ()">graphene_vec4_length</a> <span class="c_punctuation">()</span>
|
615
|
-
</td>
|
616
|
-
</tr>
|
617
|
-
<tr>
|
618
|
-
<td class="function_type">
|
619
|
-
<span class="returnvalue">void</span>
|
620
|
-
</td>
|
621
|
-
<td class="function_name">
|
622
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-normalize" title="graphene_vec4_normalize ()">graphene_vec4_normalize</a> <span class="c_punctuation">()</span>
|
623
|
-
</td>
|
624
|
-
</tr>
|
625
|
-
<tr>
|
626
|
-
<td class="function_type">
|
627
|
-
<span class="returnvalue">void</span>
|
628
|
-
</td>
|
629
|
-
<td class="function_name">
|
630
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-negate" title="graphene_vec4_negate ()">graphene_vec4_negate</a> <span class="c_punctuation">()</span>
|
631
|
-
</td>
|
632
|
-
</tr>
|
633
|
-
<tr>
|
634
|
-
<td class="function_type">
|
635
|
-
<span class="returnvalue">bool</span>
|
636
|
-
</td>
|
637
|
-
<td class="function_name">
|
638
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-equal" title="graphene_vec4_equal ()">graphene_vec4_equal</a> <span class="c_punctuation">()</span>
|
639
|
-
</td>
|
640
|
-
</tr>
|
641
|
-
<tr>
|
642
|
-
<td class="function_type">
|
643
|
-
<span class="returnvalue">bool</span>
|
644
|
-
</td>
|
645
|
-
<td class="function_name">
|
646
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-near" title="graphene_vec4_near ()">graphene_vec4_near</a> <span class="c_punctuation">()</span>
|
647
|
-
</td>
|
648
|
-
</tr>
|
649
|
-
<tr>
|
650
|
-
<td class="function_type">
|
651
|
-
<span class="returnvalue">void</span>
|
652
|
-
</td>
|
653
|
-
<td class="function_name">
|
654
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-min" title="graphene_vec4_min ()">graphene_vec4_min</a> <span class="c_punctuation">()</span>
|
655
|
-
</td>
|
656
|
-
</tr>
|
657
|
-
<tr>
|
658
|
-
<td class="function_type">
|
659
|
-
<span class="returnvalue">void</span>
|
660
|
-
</td>
|
661
|
-
<td class="function_name">
|
662
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-max" title="graphene_vec4_max ()">graphene_vec4_max</a> <span class="c_punctuation">()</span>
|
663
|
-
</td>
|
664
|
-
</tr>
|
665
|
-
<tr>
|
666
|
-
<td class="function_type">
|
667
|
-
<span class="returnvalue">float</span>
|
668
|
-
</td>
|
669
|
-
<td class="function_name">
|
670
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-get-x" title="graphene_vec4_get_x ()">graphene_vec4_get_x</a> <span class="c_punctuation">()</span>
|
671
|
-
</td>
|
672
|
-
</tr>
|
673
|
-
<tr>
|
674
|
-
<td class="function_type">
|
675
|
-
<span class="returnvalue">float</span>
|
676
|
-
</td>
|
677
|
-
<td class="function_name">
|
678
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-get-y" title="graphene_vec4_get_y ()">graphene_vec4_get_y</a> <span class="c_punctuation">()</span>
|
679
|
-
</td>
|
680
|
-
</tr>
|
681
|
-
<tr>
|
682
|
-
<td class="function_type">
|
683
|
-
<span class="returnvalue">float</span>
|
684
|
-
</td>
|
685
|
-
<td class="function_name">
|
686
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-get-z" title="graphene_vec4_get_z ()">graphene_vec4_get_z</a> <span class="c_punctuation">()</span>
|
687
|
-
</td>
|
688
|
-
</tr>
|
689
|
-
<tr>
|
690
|
-
<td class="function_type">
|
691
|
-
<span class="returnvalue">float</span>
|
692
|
-
</td>
|
693
|
-
<td class="function_name">
|
694
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-get-w" title="graphene_vec4_get_w ()">graphene_vec4_get_w</a> <span class="c_punctuation">()</span>
|
695
|
-
</td>
|
696
|
-
</tr>
|
697
|
-
<tr>
|
698
|
-
<td class="function_type">
|
699
|
-
<span class="returnvalue">void</span>
|
700
|
-
</td>
|
701
|
-
<td class="function_name">
|
702
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-get-xy" title="graphene_vec4_get_xy ()">graphene_vec4_get_xy</a> <span class="c_punctuation">()</span>
|
703
|
-
</td>
|
704
|
-
</tr>
|
705
|
-
<tr>
|
706
|
-
<td class="function_type">
|
707
|
-
<span class="returnvalue">void</span>
|
708
|
-
</td>
|
709
|
-
<td class="function_name">
|
710
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-get-xyz" title="graphene_vec4_get_xyz ()">graphene_vec4_get_xyz</a> <span class="c_punctuation">()</span>
|
711
|
-
</td>
|
712
|
-
</tr>
|
713
|
-
<tr>
|
714
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
715
|
-
</td>
|
716
|
-
<td class="function_name">
|
717
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-zero" title="graphene_vec4_zero ()">graphene_vec4_zero</a> <span class="c_punctuation">()</span>
|
718
|
-
</td>
|
719
|
-
</tr>
|
720
|
-
<tr>
|
721
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
722
|
-
</td>
|
723
|
-
<td class="function_name">
|
724
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-one" title="graphene_vec4_one ()">graphene_vec4_one</a> <span class="c_punctuation">()</span>
|
725
|
-
</td>
|
726
|
-
</tr>
|
727
|
-
<tr>
|
728
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
729
|
-
</td>
|
730
|
-
<td class="function_name">
|
731
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-x-axis" title="graphene_vec4_x_axis ()">graphene_vec4_x_axis</a> <span class="c_punctuation">()</span>
|
732
|
-
</td>
|
733
|
-
</tr>
|
734
|
-
<tr>
|
735
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
736
|
-
</td>
|
737
|
-
<td class="function_name">
|
738
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-y-axis" title="graphene_vec4_y_axis ()">graphene_vec4_y_axis</a> <span class="c_punctuation">()</span>
|
739
|
-
</td>
|
740
|
-
</tr>
|
741
|
-
<tr>
|
742
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
743
|
-
</td>
|
744
|
-
<td class="function_name">
|
745
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-z-axis" title="graphene_vec4_z_axis ()">graphene_vec4_z_axis</a> <span class="c_punctuation">()</span>
|
746
|
-
</td>
|
747
|
-
</tr>
|
748
|
-
<tr>
|
749
|
-
<td class="function_type">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
750
|
-
</td>
|
751
|
-
<td class="function_name">
|
752
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec4-w-axis" title="graphene_vec4_w_axis ()">graphene_vec4_w_axis</a> <span class="c_punctuation">()</span>
|
753
|
-
</td>
|
754
|
-
</tr>
|
755
|
-
</tbody>
|
756
|
-
</table></div>
|
757
|
-
</div>
|
758
|
-
<div class="refsect1">
|
759
|
-
<a name="graphene-Vectors.other"></a><h2>Types and Values</h2>
|
760
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
761
|
-
<colgroup>
|
762
|
-
<col width="150px" class="name">
|
763
|
-
<col class="description">
|
764
|
-
</colgroup>
|
765
|
-
<tbody>
|
766
|
-
<tr>
|
767
|
-
<td class="define_keyword">#define</td>
|
768
|
-
<td class="function_name"><a class="link" href="graphene-Vectors.html#GRAPHENE-VEC2-LEN:CAPS" title="GRAPHENE_VEC2_LEN">GRAPHENE_VEC2_LEN</a></td>
|
769
|
-
</tr>
|
770
|
-
<tr>
|
771
|
-
<td class="datatype_keyword"> </td>
|
772
|
-
<td class="function_name"><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t">graphene_vec2_t</a></td>
|
773
|
-
</tr>
|
774
|
-
<tr>
|
775
|
-
<td class="define_keyword">#define</td>
|
776
|
-
<td class="function_name"><a class="link" href="graphene-Vectors.html#GRAPHENE-VEC3-LEN:CAPS" title="GRAPHENE_VEC3_LEN">GRAPHENE_VEC3_LEN</a></td>
|
777
|
-
</tr>
|
778
|
-
<tr>
|
779
|
-
<td class="datatype_keyword"> </td>
|
780
|
-
<td class="function_name"><a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t">graphene_vec3_t</a></td>
|
781
|
-
</tr>
|
782
|
-
<tr>
|
783
|
-
<td class="define_keyword">#define</td>
|
784
|
-
<td class="function_name"><a class="link" href="graphene-Vectors.html#GRAPHENE-VEC4-LEN:CAPS" title="GRAPHENE_VEC4_LEN">GRAPHENE_VEC4_LEN</a></td>
|
785
|
-
</tr>
|
786
|
-
<tr>
|
787
|
-
<td class="datatype_keyword"> </td>
|
788
|
-
<td class="function_name"><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t">graphene_vec4_t</a></td>
|
789
|
-
</tr>
|
790
|
-
</tbody>
|
791
|
-
</table></div>
|
792
|
-
</div>
|
793
|
-
<div class="refsect1">
|
794
|
-
<a name="graphene-Vectors.includes"></a><h2>Includes</h2>
|
795
|
-
<pre class="synopsis">#include <graphene.h>
|
796
|
-
</pre>
|
797
|
-
</div>
|
798
|
-
<div class="refsect1">
|
799
|
-
<a name="graphene-Vectors.description"></a><h2>Description</h2>
|
800
|
-
<p>Graphene has three vector types, distinguished by their length:</p>
|
801
|
-
<div class="orderedlist"><ol class="orderedlist" type="1">
|
802
|
-
<li class="listitem"><p><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>, which holds 2 components x and y</p></li>
|
803
|
-
<li class="listitem"><p><a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>, which holds 3 components x, y, and z</p></li>
|
804
|
-
<li class="listitem"><p><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>, which holds 4 components x, y, z, and w</p></li>
|
805
|
-
</ol></div>
|
806
|
-
<p>Each vector type should be treated as an opaque data type.</p>
|
807
|
-
</div>
|
808
|
-
<div class="refsect1">
|
809
|
-
<a name="graphene-Vectors.functions_details"></a><h2>Functions</h2>
|
810
|
-
<div class="refsect2">
|
811
|
-
<a name="graphene-vec2-alloc"></a><h3>graphene_vec2_alloc ()</h3>
|
812
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
813
|
-
graphene_vec2_alloc (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
814
|
-
<p>Allocates a new <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> structure.</p>
|
815
|
-
<p>The contents of the returned structure are undefined.</p>
|
816
|
-
<p>Use <a class="link" href="graphene-Vectors.html#graphene-vec2-init" title="graphene_vec2_init ()"><code class="function">graphene_vec2_init()</code></a> to initialize the vector.</p>
|
817
|
-
<p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
|
818
|
-
<div class="refsect3">
|
819
|
-
<a name="graphene-vec2-alloc.returns"></a><h4>Returns</h4>
|
820
|
-
<p> the newly allocated <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>
|
821
|
-
structure. Use <a class="link" href="graphene-Vectors.html#graphene-vec2-free" title="graphene_vec2_free ()"><code class="function">graphene_vec2_free()</code></a> to free the resources allocated
|
822
|
-
by this function. </p>
|
823
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
824
|
-
</div>
|
825
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
826
|
-
</div>
|
827
|
-
<hr>
|
828
|
-
<div class="refsect2">
|
829
|
-
<a name="graphene-vec2-free"></a><h3>graphene_vec2_free ()</h3>
|
830
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
831
|
-
graphene_vec2_free (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>);</pre>
|
832
|
-
<p>Frees the resources allocated by <em class="parameter"><code>v</code></em>
|
833
|
-
</p>
|
834
|
-
<div class="refsect3">
|
835
|
-
<a name="graphene-vec2-free.parameters"></a><h4>Parameters</h4>
|
836
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
837
|
-
<colgroup>
|
838
|
-
<col width="150px" class="parameters_name">
|
839
|
-
<col class="parameters_description">
|
840
|
-
<col width="200px" class="parameters_annotations">
|
841
|
-
</colgroup>
|
842
|
-
<tbody><tr>
|
843
|
-
<td class="parameter_name"><p>v</p></td>
|
844
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
845
|
-
<td class="parameter_annotations"> </td>
|
846
|
-
</tr></tbody>
|
847
|
-
</table></div>
|
848
|
-
</div>
|
849
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
850
|
-
</div>
|
851
|
-
<hr>
|
852
|
-
<div class="refsect2">
|
853
|
-
<a name="graphene-vec2-init"></a><h3>graphene_vec2_init ()</h3>
|
854
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
855
|
-
graphene_vec2_init (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>,
|
856
|
-
<em class="parameter"><code><span class="type">float</span> x</code></em>,
|
857
|
-
<em class="parameter"><code><span class="type">float</span> y</code></em>);</pre>
|
858
|
-
<p>Initializes a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> using the given values.</p>
|
859
|
-
<p>This function can be called multiple times.</p>
|
860
|
-
<div class="refsect3">
|
861
|
-
<a name="graphene-vec2-init.parameters"></a><h4>Parameters</h4>
|
862
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
863
|
-
<colgroup>
|
864
|
-
<col width="150px" class="parameters_name">
|
865
|
-
<col class="parameters_description">
|
866
|
-
<col width="200px" class="parameters_annotations">
|
867
|
-
</colgroup>
|
868
|
-
<tbody>
|
869
|
-
<tr>
|
870
|
-
<td class="parameter_name"><p>v</p></td>
|
871
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
872
|
-
<td class="parameter_annotations"> </td>
|
873
|
-
</tr>
|
874
|
-
<tr>
|
875
|
-
<td class="parameter_name"><p>x</p></td>
|
876
|
-
<td class="parameter_description"><p>the X field of the vector</p></td>
|
877
|
-
<td class="parameter_annotations"> </td>
|
878
|
-
</tr>
|
879
|
-
<tr>
|
880
|
-
<td class="parameter_name"><p>y</p></td>
|
881
|
-
<td class="parameter_description"><p>the Y field of the vector</p></td>
|
882
|
-
<td class="parameter_annotations"> </td>
|
883
|
-
</tr>
|
884
|
-
</tbody>
|
885
|
-
</table></div>
|
886
|
-
</div>
|
887
|
-
<div class="refsect3">
|
888
|
-
<a name="graphene-vec2-init.returns"></a><h4>Returns</h4>
|
889
|
-
<p> the initialized vector. </p>
|
890
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
891
|
-
</div>
|
892
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
893
|
-
</div>
|
894
|
-
<hr>
|
895
|
-
<div class="refsect2">
|
896
|
-
<a name="graphene-vec2-init-from-vec2"></a><h3>graphene_vec2_init_from_vec2 ()</h3>
|
897
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
898
|
-
graphene_vec2_init_from_vec2 (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>,
|
899
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *src</code></em>);</pre>
|
900
|
-
<p>Copies the contents of <em class="parameter"><code>src</code></em>
|
901
|
-
into <em class="parameter"><code>v</code></em>
|
902
|
-
.</p>
|
903
|
-
<div class="refsect3">
|
904
|
-
<a name="graphene-vec2-init-from-vec2.parameters"></a><h4>Parameters</h4>
|
905
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
906
|
-
<colgroup>
|
907
|
-
<col width="150px" class="parameters_name">
|
908
|
-
<col class="parameters_description">
|
909
|
-
<col width="200px" class="parameters_annotations">
|
910
|
-
</colgroup>
|
911
|
-
<tbody>
|
912
|
-
<tr>
|
913
|
-
<td class="parameter_name"><p>v</p></td>
|
914
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
915
|
-
<td class="parameter_annotations"> </td>
|
916
|
-
</tr>
|
917
|
-
<tr>
|
918
|
-
<td class="parameter_name"><p>src</p></td>
|
919
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
920
|
-
<td class="parameter_annotations"> </td>
|
921
|
-
</tr>
|
922
|
-
</tbody>
|
923
|
-
</table></div>
|
924
|
-
</div>
|
925
|
-
<div class="refsect3">
|
926
|
-
<a name="graphene-vec2-init-from-vec2.returns"></a><h4>Returns</h4>
|
927
|
-
<p> the initialized vector. </p>
|
928
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
929
|
-
</div>
|
930
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
931
|
-
</div>
|
932
|
-
<hr>
|
933
|
-
<div class="refsect2">
|
934
|
-
<a name="graphene-vec2-init-from-float"></a><h3>graphene_vec2_init_from_float ()</h3>
|
935
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
936
|
-
graphene_vec2_init_from_float (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>,
|
937
|
-
<em class="parameter"><code>const <span class="type">float</span> *src</code></em>);</pre>
|
938
|
-
<p>Initializes <em class="parameter"><code>v</code></em>
|
939
|
-
with the contents of the given array.</p>
|
940
|
-
<div class="refsect3">
|
941
|
-
<a name="graphene-vec2-init-from-float.parameters"></a><h4>Parameters</h4>
|
942
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
943
|
-
<colgroup>
|
944
|
-
<col width="150px" class="parameters_name">
|
945
|
-
<col class="parameters_description">
|
946
|
-
<col width="200px" class="parameters_annotations">
|
947
|
-
</colgroup>
|
948
|
-
<tbody>
|
949
|
-
<tr>
|
950
|
-
<td class="parameter_name"><p>v</p></td>
|
951
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
952
|
-
<td class="parameter_annotations"> </td>
|
953
|
-
</tr>
|
954
|
-
<tr>
|
955
|
-
<td class="parameter_name"><p>src</p></td>
|
956
|
-
<td class="parameter_description"><p> an array of floating point values
|
957
|
-
with at least two elements. </p></td>
|
958
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> fixed-size=2]</span></td>
|
959
|
-
</tr>
|
960
|
-
</tbody>
|
961
|
-
</table></div>
|
962
|
-
</div>
|
963
|
-
<div class="refsect3">
|
964
|
-
<a name="graphene-vec2-init-from-float.returns"></a><h4>Returns</h4>
|
965
|
-
<p> the initialized vector. </p>
|
966
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
967
|
-
</div>
|
968
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
969
|
-
</div>
|
970
|
-
<hr>
|
971
|
-
<div class="refsect2">
|
972
|
-
<a name="graphene-vec2-to-float"></a><h3>graphene_vec2_to_float ()</h3>
|
973
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
974
|
-
graphene_vec2_to_float (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>,
|
975
|
-
<em class="parameter"><code><span class="type">float</span> *dest</code></em>);</pre>
|
976
|
-
<p>Stores the components of <em class="parameter"><code>v</code></em>
|
977
|
-
into an array.</p>
|
978
|
-
<div class="refsect3">
|
979
|
-
<a name="graphene-vec2-to-float.parameters"></a><h4>Parameters</h4>
|
980
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
981
|
-
<colgroup>
|
982
|
-
<col width="150px" class="parameters_name">
|
983
|
-
<col class="parameters_description">
|
984
|
-
<col width="200px" class="parameters_annotations">
|
985
|
-
</colgroup>
|
986
|
-
<tbody>
|
987
|
-
<tr>
|
988
|
-
<td class="parameter_name"><p>v</p></td>
|
989
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
990
|
-
<td class="parameter_annotations"> </td>
|
991
|
-
</tr>
|
992
|
-
<tr>
|
993
|
-
<td class="parameter_name"><p>dest</p></td>
|
994
|
-
<td class="parameter_description"><p> return location
|
995
|
-
for an array of floating point values with at least 2 elements. </p></td>
|
996
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> fixed-size=2]</span></td>
|
997
|
-
</tr>
|
998
|
-
</tbody>
|
999
|
-
</table></div>
|
1000
|
-
</div>
|
1001
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1002
|
-
</div>
|
1003
|
-
<hr>
|
1004
|
-
<div class="refsect2">
|
1005
|
-
<a name="graphene-vec2-add"></a><h3>graphene_vec2_add ()</h3>
|
1006
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1007
|
-
graphene_vec2_add (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *a</code></em>,
|
1008
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *b</code></em>,
|
1009
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
1010
|
-
<p>Adds each component of the two passed vectors and places
|
1011
|
-
each result into the components of <em class="parameter"><code>res</code></em>
|
1012
|
-
.</p>
|
1013
|
-
<div class="refsect3">
|
1014
|
-
<a name="graphene-vec2-add.parameters"></a><h4>Parameters</h4>
|
1015
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1016
|
-
<colgroup>
|
1017
|
-
<col width="150px" class="parameters_name">
|
1018
|
-
<col class="parameters_description">
|
1019
|
-
<col width="200px" class="parameters_annotations">
|
1020
|
-
</colgroup>
|
1021
|
-
<tbody>
|
1022
|
-
<tr>
|
1023
|
-
<td class="parameter_name"><p>a</p></td>
|
1024
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1025
|
-
<td class="parameter_annotations"> </td>
|
1026
|
-
</tr>
|
1027
|
-
<tr>
|
1028
|
-
<td class="parameter_name"><p>b</p></td>
|
1029
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1030
|
-
<td class="parameter_annotations"> </td>
|
1031
|
-
</tr>
|
1032
|
-
<tr>
|
1033
|
-
<td class="parameter_name"><p>res</p></td>
|
1034
|
-
<td class="parameter_description"><p> return location for the result. </p></td>
|
1035
|
-
<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>
|
1036
|
-
</tr>
|
1037
|
-
</tbody>
|
1038
|
-
</table></div>
|
1039
|
-
</div>
|
1040
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1041
|
-
</div>
|
1042
|
-
<hr>
|
1043
|
-
<div class="refsect2">
|
1044
|
-
<a name="graphene-vec2-subtract"></a><h3>graphene_vec2_subtract ()</h3>
|
1045
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1046
|
-
graphene_vec2_subtract (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *a</code></em>,
|
1047
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *b</code></em>,
|
1048
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
1049
|
-
<p>Subtracts from each component of the first operand <em class="parameter"><code>a</code></em>
|
1050
|
-
the
|
1051
|
-
corresponding component of the second operand <em class="parameter"><code>b</code></em>
|
1052
|
-
and places
|
1053
|
-
each result into the components of <em class="parameter"><code>res</code></em>
|
1054
|
-
.</p>
|
1055
|
-
<div class="refsect3">
|
1056
|
-
<a name="graphene-vec2-subtract.parameters"></a><h4>Parameters</h4>
|
1057
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1058
|
-
<colgroup>
|
1059
|
-
<col width="150px" class="parameters_name">
|
1060
|
-
<col class="parameters_description">
|
1061
|
-
<col width="200px" class="parameters_annotations">
|
1062
|
-
</colgroup>
|
1063
|
-
<tbody>
|
1064
|
-
<tr>
|
1065
|
-
<td class="parameter_name"><p>a</p></td>
|
1066
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1067
|
-
<td class="parameter_annotations"> </td>
|
1068
|
-
</tr>
|
1069
|
-
<tr>
|
1070
|
-
<td class="parameter_name"><p>b</p></td>
|
1071
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1072
|
-
<td class="parameter_annotations"> </td>
|
1073
|
-
</tr>
|
1074
|
-
<tr>
|
1075
|
-
<td class="parameter_name"><p>res</p></td>
|
1076
|
-
<td class="parameter_description"><p> return location for the result. </p></td>
|
1077
|
-
<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>
|
1078
|
-
</tr>
|
1079
|
-
</tbody>
|
1080
|
-
</table></div>
|
1081
|
-
</div>
|
1082
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1083
|
-
</div>
|
1084
|
-
<hr>
|
1085
|
-
<div class="refsect2">
|
1086
|
-
<a name="graphene-vec2-multiply"></a><h3>graphene_vec2_multiply ()</h3>
|
1087
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1088
|
-
graphene_vec2_multiply (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *a</code></em>,
|
1089
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *b</code></em>,
|
1090
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
1091
|
-
<p>Multiplies each component of the two passed vectors and places
|
1092
|
-
each result into the components of <em class="parameter"><code>res</code></em>
|
1093
|
-
.</p>
|
1094
|
-
<div class="refsect3">
|
1095
|
-
<a name="graphene-vec2-multiply.parameters"></a><h4>Parameters</h4>
|
1096
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1097
|
-
<colgroup>
|
1098
|
-
<col width="150px" class="parameters_name">
|
1099
|
-
<col class="parameters_description">
|
1100
|
-
<col width="200px" class="parameters_annotations">
|
1101
|
-
</colgroup>
|
1102
|
-
<tbody>
|
1103
|
-
<tr>
|
1104
|
-
<td class="parameter_name"><p>a</p></td>
|
1105
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1106
|
-
<td class="parameter_annotations"> </td>
|
1107
|
-
</tr>
|
1108
|
-
<tr>
|
1109
|
-
<td class="parameter_name"><p>b</p></td>
|
1110
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1111
|
-
<td class="parameter_annotations"> </td>
|
1112
|
-
</tr>
|
1113
|
-
<tr>
|
1114
|
-
<td class="parameter_name"><p>res</p></td>
|
1115
|
-
<td class="parameter_description"><p> return location for the result. </p></td>
|
1116
|
-
<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>
|
1117
|
-
</tr>
|
1118
|
-
</tbody>
|
1119
|
-
</table></div>
|
1120
|
-
</div>
|
1121
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1122
|
-
</div>
|
1123
|
-
<hr>
|
1124
|
-
<div class="refsect2">
|
1125
|
-
<a name="graphene-vec2-divide"></a><h3>graphene_vec2_divide ()</h3>
|
1126
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1127
|
-
graphene_vec2_divide (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *a</code></em>,
|
1128
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *b</code></em>,
|
1129
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
1130
|
-
<p>Divides each component of the first operand <em class="parameter"><code>a</code></em>
|
1131
|
-
by the corresponding
|
1132
|
-
component of the second operand <em class="parameter"><code>b</code></em>
|
1133
|
-
, and places the results into the
|
1134
|
-
vector <em class="parameter"><code>res</code></em>
|
1135
|
-
.</p>
|
1136
|
-
<div class="refsect3">
|
1137
|
-
<a name="graphene-vec2-divide.parameters"></a><h4>Parameters</h4>
|
1138
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1139
|
-
<colgroup>
|
1140
|
-
<col width="150px" class="parameters_name">
|
1141
|
-
<col class="parameters_description">
|
1142
|
-
<col width="200px" class="parameters_annotations">
|
1143
|
-
</colgroup>
|
1144
|
-
<tbody>
|
1145
|
-
<tr>
|
1146
|
-
<td class="parameter_name"><p>a</p></td>
|
1147
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1148
|
-
<td class="parameter_annotations"> </td>
|
1149
|
-
</tr>
|
1150
|
-
<tr>
|
1151
|
-
<td class="parameter_name"><p>b</p></td>
|
1152
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1153
|
-
<td class="parameter_annotations"> </td>
|
1154
|
-
</tr>
|
1155
|
-
<tr>
|
1156
|
-
<td class="parameter_name"><p>res</p></td>
|
1157
|
-
<td class="parameter_description"><p> return location for the result. </p></td>
|
1158
|
-
<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>
|
1159
|
-
</tr>
|
1160
|
-
</tbody>
|
1161
|
-
</table></div>
|
1162
|
-
</div>
|
1163
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1164
|
-
</div>
|
1165
|
-
<hr>
|
1166
|
-
<div class="refsect2">
|
1167
|
-
<a name="graphene-vec2-dot"></a><h3>graphene_vec2_dot ()</h3>
|
1168
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
1169
|
-
graphene_vec2_dot (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *a</code></em>,
|
1170
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *b</code></em>);</pre>
|
1171
|
-
<p>Computes the dot product of the two given vectors.</p>
|
1172
|
-
<div class="refsect3">
|
1173
|
-
<a name="graphene-vec2-dot.parameters"></a><h4>Parameters</h4>
|
1174
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1175
|
-
<colgroup>
|
1176
|
-
<col width="150px" class="parameters_name">
|
1177
|
-
<col class="parameters_description">
|
1178
|
-
<col width="200px" class="parameters_annotations">
|
1179
|
-
</colgroup>
|
1180
|
-
<tbody>
|
1181
|
-
<tr>
|
1182
|
-
<td class="parameter_name"><p>a</p></td>
|
1183
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1184
|
-
<td class="parameter_annotations"> </td>
|
1185
|
-
</tr>
|
1186
|
-
<tr>
|
1187
|
-
<td class="parameter_name"><p>b</p></td>
|
1188
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1189
|
-
<td class="parameter_annotations"> </td>
|
1190
|
-
</tr>
|
1191
|
-
</tbody>
|
1192
|
-
</table></div>
|
1193
|
-
</div>
|
1194
|
-
<div class="refsect3">
|
1195
|
-
<a name="graphene-vec2-dot.returns"></a><h4>Returns</h4>
|
1196
|
-
<p> the dot product of the vectors</p>
|
1197
|
-
</div>
|
1198
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1199
|
-
</div>
|
1200
|
-
<hr>
|
1201
|
-
<div class="refsect2">
|
1202
|
-
<a name="graphene-vec2-scale"></a><h3>graphene_vec2_scale ()</h3>
|
1203
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1204
|
-
graphene_vec2_scale (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>,
|
1205
|
-
<em class="parameter"><code><span class="type">float</span> factor</code></em>,
|
1206
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
1207
|
-
<p>Multiplies all components of the given vector with the given scalar <em class="parameter"><code>factor</code></em>
|
1208
|
-
.</p>
|
1209
|
-
<div class="refsect3">
|
1210
|
-
<a name="graphene-vec2-scale.parameters"></a><h4>Parameters</h4>
|
1211
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1212
|
-
<colgroup>
|
1213
|
-
<col width="150px" class="parameters_name">
|
1214
|
-
<col class="parameters_description">
|
1215
|
-
<col width="200px" class="parameters_annotations">
|
1216
|
-
</colgroup>
|
1217
|
-
<tbody>
|
1218
|
-
<tr>
|
1219
|
-
<td class="parameter_name"><p>v</p></td>
|
1220
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1221
|
-
<td class="parameter_annotations"> </td>
|
1222
|
-
</tr>
|
1223
|
-
<tr>
|
1224
|
-
<td class="parameter_name"><p>factor</p></td>
|
1225
|
-
<td class="parameter_description"><p>the scalar factor</p></td>
|
1226
|
-
<td class="parameter_annotations"> </td>
|
1227
|
-
</tr>
|
1228
|
-
<tr>
|
1229
|
-
<td class="parameter_name"><p>res</p></td>
|
1230
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
1231
|
-
<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>
|
1232
|
-
</tr>
|
1233
|
-
</tbody>
|
1234
|
-
</table></div>
|
1235
|
-
</div>
|
1236
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
1237
|
-
</div>
|
1238
|
-
<hr>
|
1239
|
-
<div class="refsect2">
|
1240
|
-
<a name="graphene-vec2-length"></a><h3>graphene_vec2_length ()</h3>
|
1241
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
1242
|
-
graphene_vec2_length (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>);</pre>
|
1243
|
-
<p>Computes the length of the given vector.</p>
|
1244
|
-
<div class="refsect3">
|
1245
|
-
<a name="graphene-vec2-length.parameters"></a><h4>Parameters</h4>
|
1246
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1247
|
-
<colgroup>
|
1248
|
-
<col width="150px" class="parameters_name">
|
1249
|
-
<col class="parameters_description">
|
1250
|
-
<col width="200px" class="parameters_annotations">
|
1251
|
-
</colgroup>
|
1252
|
-
<tbody><tr>
|
1253
|
-
<td class="parameter_name"><p>v</p></td>
|
1254
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1255
|
-
<td class="parameter_annotations"> </td>
|
1256
|
-
</tr></tbody>
|
1257
|
-
</table></div>
|
1258
|
-
</div>
|
1259
|
-
<div class="refsect3">
|
1260
|
-
<a name="graphene-vec2-length.returns"></a><h4>Returns</h4>
|
1261
|
-
<p> the length of the vector</p>
|
1262
|
-
</div>
|
1263
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1264
|
-
</div>
|
1265
|
-
<hr>
|
1266
|
-
<div class="refsect2">
|
1267
|
-
<a name="graphene-vec2-normalize"></a><h3>graphene_vec2_normalize ()</h3>
|
1268
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1269
|
-
graphene_vec2_normalize (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>,
|
1270
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
1271
|
-
<p>Computes the normalized vector for the given vector <em class="parameter"><code>v</code></em>
|
1272
|
-
.</p>
|
1273
|
-
<div class="refsect3">
|
1274
|
-
<a name="graphene-vec2-normalize.parameters"></a><h4>Parameters</h4>
|
1275
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1276
|
-
<colgroup>
|
1277
|
-
<col width="150px" class="parameters_name">
|
1278
|
-
<col class="parameters_description">
|
1279
|
-
<col width="200px" class="parameters_annotations">
|
1280
|
-
</colgroup>
|
1281
|
-
<tbody>
|
1282
|
-
<tr>
|
1283
|
-
<td class="parameter_name"><p>v</p></td>
|
1284
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1285
|
-
<td class="parameter_annotations"> </td>
|
1286
|
-
</tr>
|
1287
|
-
<tr>
|
1288
|
-
<td class="parameter_name"><p>res</p></td>
|
1289
|
-
<td class="parameter_description"><p> return location for the
|
1290
|
-
normalized vector. </p></td>
|
1291
|
-
<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>
|
1292
|
-
</tr>
|
1293
|
-
</tbody>
|
1294
|
-
</table></div>
|
1295
|
-
</div>
|
1296
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1297
|
-
</div>
|
1298
|
-
<hr>
|
1299
|
-
<div class="refsect2">
|
1300
|
-
<a name="graphene-vec2-negate"></a><h3>graphene_vec2_negate ()</h3>
|
1301
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1302
|
-
graphene_vec2_negate (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>,
|
1303
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
1304
|
-
<p>Negates the given <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>.</p>
|
1305
|
-
<div class="refsect3">
|
1306
|
-
<a name="graphene-vec2-negate.parameters"></a><h4>Parameters</h4>
|
1307
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1308
|
-
<colgroup>
|
1309
|
-
<col width="150px" class="parameters_name">
|
1310
|
-
<col class="parameters_description">
|
1311
|
-
<col width="200px" class="parameters_annotations">
|
1312
|
-
</colgroup>
|
1313
|
-
<tbody>
|
1314
|
-
<tr>
|
1315
|
-
<td class="parameter_name"><p>v</p></td>
|
1316
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1317
|
-
<td class="parameter_annotations"> </td>
|
1318
|
-
</tr>
|
1319
|
-
<tr>
|
1320
|
-
<td class="parameter_name"><p>res</p></td>
|
1321
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
1322
|
-
<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>
|
1323
|
-
</tr>
|
1324
|
-
</tbody>
|
1325
|
-
</table></div>
|
1326
|
-
</div>
|
1327
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
1328
|
-
</div>
|
1329
|
-
<hr>
|
1330
|
-
<div class="refsect2">
|
1331
|
-
<a name="graphene-vec2-equal"></a><h3>graphene_vec2_equal ()</h3>
|
1332
|
-
<pre class="programlisting"><span class="returnvalue">bool</span>
|
1333
|
-
graphene_vec2_equal (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v1</code></em>,
|
1334
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v2</code></em>);</pre>
|
1335
|
-
<p>Checks whether the two given <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> are equal.</p>
|
1336
|
-
<div class="refsect3">
|
1337
|
-
<a name="graphene-vec2-equal.parameters"></a><h4>Parameters</h4>
|
1338
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1339
|
-
<colgroup>
|
1340
|
-
<col width="150px" class="parameters_name">
|
1341
|
-
<col class="parameters_description">
|
1342
|
-
<col width="200px" class="parameters_annotations">
|
1343
|
-
</colgroup>
|
1344
|
-
<tbody>
|
1345
|
-
<tr>
|
1346
|
-
<td class="parameter_name"><p>v1</p></td>
|
1347
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1348
|
-
<td class="parameter_annotations"> </td>
|
1349
|
-
</tr>
|
1350
|
-
<tr>
|
1351
|
-
<td class="parameter_name"><p>v2</p></td>
|
1352
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1353
|
-
<td class="parameter_annotations"> </td>
|
1354
|
-
</tr>
|
1355
|
-
</tbody>
|
1356
|
-
</table></div>
|
1357
|
-
</div>
|
1358
|
-
<div class="refsect3">
|
1359
|
-
<a name="graphene-vec2-equal.returns"></a><h4>Returns</h4>
|
1360
|
-
<p> <code class="literal">true</code> if the two vectors are equal, and false otherwise</p>
|
1361
|
-
</div>
|
1362
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
1363
|
-
</div>
|
1364
|
-
<hr>
|
1365
|
-
<div class="refsect2">
|
1366
|
-
<a name="graphene-vec2-near"></a><h3>graphene_vec2_near ()</h3>
|
1367
|
-
<pre class="programlisting"><span class="returnvalue">bool</span>
|
1368
|
-
graphene_vec2_near (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v1</code></em>,
|
1369
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v2</code></em>,
|
1370
|
-
<em class="parameter"><code><span class="type">float</span> epsilon</code></em>);</pre>
|
1371
|
-
<p>Compares the two given <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> vectors and checks
|
1372
|
-
whether their values are within the given <em class="parameter"><code>epsilon</code></em>
|
1373
|
-
.</p>
|
1374
|
-
<div class="refsect3">
|
1375
|
-
<a name="graphene-vec2-near.parameters"></a><h4>Parameters</h4>
|
1376
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1377
|
-
<colgroup>
|
1378
|
-
<col width="150px" class="parameters_name">
|
1379
|
-
<col class="parameters_description">
|
1380
|
-
<col width="200px" class="parameters_annotations">
|
1381
|
-
</colgroup>
|
1382
|
-
<tbody>
|
1383
|
-
<tr>
|
1384
|
-
<td class="parameter_name"><p>v1</p></td>
|
1385
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1386
|
-
<td class="parameter_annotations"> </td>
|
1387
|
-
</tr>
|
1388
|
-
<tr>
|
1389
|
-
<td class="parameter_name"><p>v2</p></td>
|
1390
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1391
|
-
<td class="parameter_annotations"> </td>
|
1392
|
-
</tr>
|
1393
|
-
<tr>
|
1394
|
-
<td class="parameter_name"><p>epsilon</p></td>
|
1395
|
-
<td class="parameter_description"><p>the threshold between the two vectors</p></td>
|
1396
|
-
<td class="parameter_annotations"> </td>
|
1397
|
-
</tr>
|
1398
|
-
</tbody>
|
1399
|
-
</table></div>
|
1400
|
-
</div>
|
1401
|
-
<div class="refsect3">
|
1402
|
-
<a name="graphene-vec2-near.returns"></a><h4>Returns</h4>
|
1403
|
-
<p> <code class="literal">true</code> if the two vectors are near each other</p>
|
1404
|
-
</div>
|
1405
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
1406
|
-
</div>
|
1407
|
-
<hr>
|
1408
|
-
<div class="refsect2">
|
1409
|
-
<a name="graphene-vec2-min"></a><h3>graphene_vec2_min ()</h3>
|
1410
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1411
|
-
graphene_vec2_min (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *a</code></em>,
|
1412
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *b</code></em>,
|
1413
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
1414
|
-
<p>Compares the two given vectors and places the minimum
|
1415
|
-
values of each component into <em class="parameter"><code>res</code></em>
|
1416
|
-
.</p>
|
1417
|
-
<div class="refsect3">
|
1418
|
-
<a name="graphene-vec2-min.parameters"></a><h4>Parameters</h4>
|
1419
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1420
|
-
<colgroup>
|
1421
|
-
<col width="150px" class="parameters_name">
|
1422
|
-
<col class="parameters_description">
|
1423
|
-
<col width="200px" class="parameters_annotations">
|
1424
|
-
</colgroup>
|
1425
|
-
<tbody>
|
1426
|
-
<tr>
|
1427
|
-
<td class="parameter_name"><p>a</p></td>
|
1428
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1429
|
-
<td class="parameter_annotations"> </td>
|
1430
|
-
</tr>
|
1431
|
-
<tr>
|
1432
|
-
<td class="parameter_name"><p>b</p></td>
|
1433
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1434
|
-
<td class="parameter_annotations"> </td>
|
1435
|
-
</tr>
|
1436
|
-
<tr>
|
1437
|
-
<td class="parameter_name"><p>res</p></td>
|
1438
|
-
<td class="parameter_description"><p> the resulting vector. </p></td>
|
1439
|
-
<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>
|
1440
|
-
</tr>
|
1441
|
-
</tbody>
|
1442
|
-
</table></div>
|
1443
|
-
</div>
|
1444
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1445
|
-
</div>
|
1446
|
-
<hr>
|
1447
|
-
<div class="refsect2">
|
1448
|
-
<a name="graphene-vec2-max"></a><h3>graphene_vec2_max ()</h3>
|
1449
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1450
|
-
graphene_vec2_max (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *a</code></em>,
|
1451
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *b</code></em>,
|
1452
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
1453
|
-
<p>Compares the two given vectors and places the maximum
|
1454
|
-
values of each component into <em class="parameter"><code>res</code></em>
|
1455
|
-
.</p>
|
1456
|
-
<div class="refsect3">
|
1457
|
-
<a name="graphene-vec2-max.parameters"></a><h4>Parameters</h4>
|
1458
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1459
|
-
<colgroup>
|
1460
|
-
<col width="150px" class="parameters_name">
|
1461
|
-
<col class="parameters_description">
|
1462
|
-
<col width="200px" class="parameters_annotations">
|
1463
|
-
</colgroup>
|
1464
|
-
<tbody>
|
1465
|
-
<tr>
|
1466
|
-
<td class="parameter_name"><p>a</p></td>
|
1467
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1468
|
-
<td class="parameter_annotations"> </td>
|
1469
|
-
</tr>
|
1470
|
-
<tr>
|
1471
|
-
<td class="parameter_name"><p>b</p></td>
|
1472
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1473
|
-
<td class="parameter_annotations"> </td>
|
1474
|
-
</tr>
|
1475
|
-
<tr>
|
1476
|
-
<td class="parameter_name"><p>res</p></td>
|
1477
|
-
<td class="parameter_description"><p> the resulting vector. </p></td>
|
1478
|
-
<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>
|
1479
|
-
</tr>
|
1480
|
-
</tbody>
|
1481
|
-
</table></div>
|
1482
|
-
</div>
|
1483
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1484
|
-
</div>
|
1485
|
-
<hr>
|
1486
|
-
<div class="refsect2">
|
1487
|
-
<a name="graphene-vec2-get-x"></a><h3>graphene_vec2_get_x ()</h3>
|
1488
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
1489
|
-
graphene_vec2_get_x (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>);</pre>
|
1490
|
-
<p>Retrieves the X component of the <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>.</p>
|
1491
|
-
<div class="refsect3">
|
1492
|
-
<a name="graphene-vec2-get-x.parameters"></a><h4>Parameters</h4>
|
1493
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1494
|
-
<colgroup>
|
1495
|
-
<col width="150px" class="parameters_name">
|
1496
|
-
<col class="parameters_description">
|
1497
|
-
<col width="200px" class="parameters_annotations">
|
1498
|
-
</colgroup>
|
1499
|
-
<tbody><tr>
|
1500
|
-
<td class="parameter_name"><p>v</p></td>
|
1501
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1502
|
-
<td class="parameter_annotations"> </td>
|
1503
|
-
</tr></tbody>
|
1504
|
-
</table></div>
|
1505
|
-
</div>
|
1506
|
-
<div class="refsect3">
|
1507
|
-
<a name="graphene-vec2-get-x.returns"></a><h4>Returns</h4>
|
1508
|
-
<p> the value of the X component</p>
|
1509
|
-
</div>
|
1510
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1511
|
-
</div>
|
1512
|
-
<hr>
|
1513
|
-
<div class="refsect2">
|
1514
|
-
<a name="graphene-vec2-get-y"></a><h3>graphene_vec2_get_y ()</h3>
|
1515
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
1516
|
-
graphene_vec2_get_y (<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *v</code></em>);</pre>
|
1517
|
-
<p>Retrieves the Y component of the <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>.</p>
|
1518
|
-
<div class="refsect3">
|
1519
|
-
<a name="graphene-vec2-get-y.parameters"></a><h4>Parameters</h4>
|
1520
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1521
|
-
<colgroup>
|
1522
|
-
<col width="150px" class="parameters_name">
|
1523
|
-
<col class="parameters_description">
|
1524
|
-
<col width="200px" class="parameters_annotations">
|
1525
|
-
</colgroup>
|
1526
|
-
<tbody><tr>
|
1527
|
-
<td class="parameter_name"><p>v</p></td>
|
1528
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
1529
|
-
<td class="parameter_annotations"> </td>
|
1530
|
-
</tr></tbody>
|
1531
|
-
</table></div>
|
1532
|
-
</div>
|
1533
|
-
<div class="refsect3">
|
1534
|
-
<a name="graphene-vec2-get-y.returns"></a><h4>Returns</h4>
|
1535
|
-
<p> the value of the Y component</p>
|
1536
|
-
</div>
|
1537
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1538
|
-
</div>
|
1539
|
-
<hr>
|
1540
|
-
<div class="refsect2">
|
1541
|
-
<a name="graphene-vec2-zero"></a><h3>graphene_vec2_zero ()</h3>
|
1542
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
1543
|
-
graphene_vec2_zero (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1544
|
-
<p>Retrieves a constant vector with (0, 0) components.</p>
|
1545
|
-
<div class="refsect3">
|
1546
|
-
<a name="graphene-vec2-zero.returns"></a><h4>Returns</h4>
|
1547
|
-
<p> the zero vector. </p>
|
1548
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1549
|
-
</div>
|
1550
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1551
|
-
</div>
|
1552
|
-
<hr>
|
1553
|
-
<div class="refsect2">
|
1554
|
-
<a name="graphene-vec2-one"></a><h3>graphene_vec2_one ()</h3>
|
1555
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
1556
|
-
graphene_vec2_one (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1557
|
-
<p>Retrieves a constant vector with (1, 1) components.</p>
|
1558
|
-
<div class="refsect3">
|
1559
|
-
<a name="graphene-vec2-one.returns"></a><h4>Returns</h4>
|
1560
|
-
<p> the one vector. </p>
|
1561
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1562
|
-
</div>
|
1563
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1564
|
-
</div>
|
1565
|
-
<hr>
|
1566
|
-
<div class="refsect2">
|
1567
|
-
<a name="graphene-vec2-x-axis"></a><h3>graphene_vec2_x_axis ()</h3>
|
1568
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
1569
|
-
graphene_vec2_x_axis (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1570
|
-
<p>Retrieves a constant vector with (1, 0) components.</p>
|
1571
|
-
<div class="refsect3">
|
1572
|
-
<a name="graphene-vec2-x-axis.returns"></a><h4>Returns</h4>
|
1573
|
-
<p> the X axis vector. </p>
|
1574
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1575
|
-
</div>
|
1576
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1577
|
-
</div>
|
1578
|
-
<hr>
|
1579
|
-
<div class="refsect2">
|
1580
|
-
<a name="graphene-vec2-y-axis"></a><h3>graphene_vec2_y_axis ()</h3>
|
1581
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="returnvalue">graphene_vec2_t</span></a> *
|
1582
|
-
graphene_vec2_y_axis (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1583
|
-
<p>Retrieves a constant vector with (0, 1) components.</p>
|
1584
|
-
<div class="refsect3">
|
1585
|
-
<a name="graphene-vec2-y-axis.returns"></a><h4>Returns</h4>
|
1586
|
-
<p> the Y axis vector. </p>
|
1587
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1588
|
-
</div>
|
1589
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1590
|
-
</div>
|
1591
|
-
<hr>
|
1592
|
-
<div class="refsect2">
|
1593
|
-
<a name="graphene-vec3-alloc"></a><h3>graphene_vec3_alloc ()</h3>
|
1594
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
1595
|
-
graphene_vec3_alloc (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
1596
|
-
<p>Allocates a new <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> structure.</p>
|
1597
|
-
<p>The contents of the returned structure are undefined.</p>
|
1598
|
-
<p>Use <a class="link" href="graphene-Vectors.html#graphene-vec3-init" title="graphene_vec3_init ()"><code class="function">graphene_vec3_init()</code></a> to initialize the vector.</p>
|
1599
|
-
<p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
|
1600
|
-
<div class="refsect3">
|
1601
|
-
<a name="graphene-vec3-alloc.returns"></a><h4>Returns</h4>
|
1602
|
-
<p> the newly allocated <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>
|
1603
|
-
structure. Use <a class="link" href="graphene-Vectors.html#graphene-vec3-free" title="graphene_vec3_free ()"><code class="function">graphene_vec3_free()</code></a> to free the resources allocated
|
1604
|
-
by this function. </p>
|
1605
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
1606
|
-
</div>
|
1607
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1608
|
-
</div>
|
1609
|
-
<hr>
|
1610
|
-
<div class="refsect2">
|
1611
|
-
<a name="graphene-vec3-free"></a><h3>graphene_vec3_free ()</h3>
|
1612
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1613
|
-
graphene_vec3_free (<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> *v</code></em>);</pre>
|
1614
|
-
<p>Frees the resources allocated by <em class="parameter"><code>v</code></em>
|
1615
|
-
</p>
|
1616
|
-
<div class="refsect3">
|
1617
|
-
<a name="graphene-vec3-free.parameters"></a><h4>Parameters</h4>
|
1618
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1619
|
-
<colgroup>
|
1620
|
-
<col width="150px" class="parameters_name">
|
1621
|
-
<col class="parameters_description">
|
1622
|
-
<col width="200px" class="parameters_annotations">
|
1623
|
-
</colgroup>
|
1624
|
-
<tbody><tr>
|
1625
|
-
<td class="parameter_name"><p>v</p></td>
|
1626
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1627
|
-
<td class="parameter_annotations"> </td>
|
1628
|
-
</tr></tbody>
|
1629
|
-
</table></div>
|
1630
|
-
</div>
|
1631
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1632
|
-
</div>
|
1633
|
-
<hr>
|
1634
|
-
<div class="refsect2">
|
1635
|
-
<a name="graphene-vec3-init"></a><h3>graphene_vec3_init ()</h3>
|
1636
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
1637
|
-
graphene_vec3_init (<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> *v</code></em>,
|
1638
|
-
<em class="parameter"><code><span class="type">float</span> x</code></em>,
|
1639
|
-
<em class="parameter"><code><span class="type">float</span> y</code></em>,
|
1640
|
-
<em class="parameter"><code><span class="type">float</span> z</code></em>);</pre>
|
1641
|
-
<p>Initializes a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> using the given values.</p>
|
1642
|
-
<p>This function can be called multiple times.</p>
|
1643
|
-
<div class="refsect3">
|
1644
|
-
<a name="graphene-vec3-init.parameters"></a><h4>Parameters</h4>
|
1645
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1646
|
-
<colgroup>
|
1647
|
-
<col width="150px" class="parameters_name">
|
1648
|
-
<col class="parameters_description">
|
1649
|
-
<col width="200px" class="parameters_annotations">
|
1650
|
-
</colgroup>
|
1651
|
-
<tbody>
|
1652
|
-
<tr>
|
1653
|
-
<td class="parameter_name"><p>v</p></td>
|
1654
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1655
|
-
<td class="parameter_annotations"> </td>
|
1656
|
-
</tr>
|
1657
|
-
<tr>
|
1658
|
-
<td class="parameter_name"><p>x</p></td>
|
1659
|
-
<td class="parameter_description"><p>the X field of the vector</p></td>
|
1660
|
-
<td class="parameter_annotations"> </td>
|
1661
|
-
</tr>
|
1662
|
-
<tr>
|
1663
|
-
<td class="parameter_name"><p>y</p></td>
|
1664
|
-
<td class="parameter_description"><p>the Y field of the vector</p></td>
|
1665
|
-
<td class="parameter_annotations"> </td>
|
1666
|
-
</tr>
|
1667
|
-
<tr>
|
1668
|
-
<td class="parameter_name"><p>z</p></td>
|
1669
|
-
<td class="parameter_description"><p>the Z field of the vector</p></td>
|
1670
|
-
<td class="parameter_annotations"> </td>
|
1671
|
-
</tr>
|
1672
|
-
</tbody>
|
1673
|
-
</table></div>
|
1674
|
-
</div>
|
1675
|
-
<div class="refsect3">
|
1676
|
-
<a name="graphene-vec3-init.returns"></a><h4>Returns</h4>
|
1677
|
-
<p> a pointer to the initialized
|
1678
|
-
vector. </p>
|
1679
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1680
|
-
</div>
|
1681
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1682
|
-
</div>
|
1683
|
-
<hr>
|
1684
|
-
<div class="refsect2">
|
1685
|
-
<a name="graphene-vec3-init-from-vec3"></a><h3>graphene_vec3_init_from_vec3 ()</h3>
|
1686
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
1687
|
-
graphene_vec3_init_from_vec3 (<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> *v</code></em>,
|
1688
|
-
<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> *src</code></em>);</pre>
|
1689
|
-
<p>Initializes a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> with the values of another
|
1690
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>.</p>
|
1691
|
-
<div class="refsect3">
|
1692
|
-
<a name="graphene-vec3-init-from-vec3.parameters"></a><h4>Parameters</h4>
|
1693
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1694
|
-
<colgroup>
|
1695
|
-
<col width="150px" class="parameters_name">
|
1696
|
-
<col class="parameters_description">
|
1697
|
-
<col width="200px" class="parameters_annotations">
|
1698
|
-
</colgroup>
|
1699
|
-
<tbody>
|
1700
|
-
<tr>
|
1701
|
-
<td class="parameter_name"><p>v</p></td>
|
1702
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1703
|
-
<td class="parameter_annotations"> </td>
|
1704
|
-
</tr>
|
1705
|
-
<tr>
|
1706
|
-
<td class="parameter_name"><p>src</p></td>
|
1707
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1708
|
-
<td class="parameter_annotations"> </td>
|
1709
|
-
</tr>
|
1710
|
-
</tbody>
|
1711
|
-
</table></div>
|
1712
|
-
</div>
|
1713
|
-
<div class="refsect3">
|
1714
|
-
<a name="graphene-vec3-init-from-vec3.returns"></a><h4>Returns</h4>
|
1715
|
-
<p> the initialized vector. </p>
|
1716
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1717
|
-
</div>
|
1718
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1719
|
-
</div>
|
1720
|
-
<hr>
|
1721
|
-
<div class="refsect2">
|
1722
|
-
<a name="graphene-vec3-init-from-float"></a><h3>graphene_vec3_init_from_float ()</h3>
|
1723
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
1724
|
-
graphene_vec3_init_from_float (<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> *v</code></em>,
|
1725
|
-
<em class="parameter"><code>const <span class="type">float</span> *src</code></em>);</pre>
|
1726
|
-
<p>Initializes a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> with the values from an array.</p>
|
1727
|
-
<div class="refsect3">
|
1728
|
-
<a name="graphene-vec3-init-from-float.parameters"></a><h4>Parameters</h4>
|
1729
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1730
|
-
<colgroup>
|
1731
|
-
<col width="150px" class="parameters_name">
|
1732
|
-
<col class="parameters_description">
|
1733
|
-
<col width="200px" class="parameters_annotations">
|
1734
|
-
</colgroup>
|
1735
|
-
<tbody>
|
1736
|
-
<tr>
|
1737
|
-
<td class="parameter_name"><p>v</p></td>
|
1738
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1739
|
-
<td class="parameter_annotations"> </td>
|
1740
|
-
</tr>
|
1741
|
-
<tr>
|
1742
|
-
<td class="parameter_name"><p>src</p></td>
|
1743
|
-
<td class="parameter_description"><p> an array of 3 floating point values. </p></td>
|
1744
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> fixed-size=3]</span></td>
|
1745
|
-
</tr>
|
1746
|
-
</tbody>
|
1747
|
-
</table></div>
|
1748
|
-
</div>
|
1749
|
-
<div class="refsect3">
|
1750
|
-
<a name="graphene-vec3-init-from-float.returns"></a><h4>Returns</h4>
|
1751
|
-
<p> the initialized vector. </p>
|
1752
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
1753
|
-
</div>
|
1754
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1755
|
-
</div>
|
1756
|
-
<hr>
|
1757
|
-
<div class="refsect2">
|
1758
|
-
<a name="graphene-vec3-to-float"></a><h3>graphene_vec3_to_float ()</h3>
|
1759
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1760
|
-
graphene_vec3_to_float (<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> *v</code></em>,
|
1761
|
-
<em class="parameter"><code><span class="type">float</span> *dest</code></em>);</pre>
|
1762
|
-
<p>Copies the components of a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> into the given array.</p>
|
1763
|
-
<div class="refsect3">
|
1764
|
-
<a name="graphene-vec3-to-float.parameters"></a><h4>Parameters</h4>
|
1765
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1766
|
-
<colgroup>
|
1767
|
-
<col width="150px" class="parameters_name">
|
1768
|
-
<col class="parameters_description">
|
1769
|
-
<col width="200px" class="parameters_annotations">
|
1770
|
-
</colgroup>
|
1771
|
-
<tbody>
|
1772
|
-
<tr>
|
1773
|
-
<td class="parameter_name"><p>v</p></td>
|
1774
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1775
|
-
<td class="parameter_annotations"> </td>
|
1776
|
-
</tr>
|
1777
|
-
<tr>
|
1778
|
-
<td class="parameter_name"><p>dest</p></td>
|
1779
|
-
<td class="parameter_description"><p> return location for
|
1780
|
-
an array of floating point values. </p></td>
|
1781
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> fixed-size=3]</span></td>
|
1782
|
-
</tr>
|
1783
|
-
</tbody>
|
1784
|
-
</table></div>
|
1785
|
-
</div>
|
1786
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1787
|
-
</div>
|
1788
|
-
<hr>
|
1789
|
-
<div class="refsect2">
|
1790
|
-
<a name="graphene-vec3-add"></a><h3>graphene_vec3_add ()</h3>
|
1791
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1792
|
-
graphene_vec3_add (<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> *a</code></em>,
|
1793
|
-
<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> *b</code></em>,
|
1794
|
-
<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> *res</code></em>);</pre>
|
1795
|
-
<p>Adds each component of the two given vectors.</p>
|
1796
|
-
<div class="refsect3">
|
1797
|
-
<a name="graphene-vec3-add.parameters"></a><h4>Parameters</h4>
|
1798
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1799
|
-
<colgroup>
|
1800
|
-
<col width="150px" class="parameters_name">
|
1801
|
-
<col class="parameters_description">
|
1802
|
-
<col width="200px" class="parameters_annotations">
|
1803
|
-
</colgroup>
|
1804
|
-
<tbody>
|
1805
|
-
<tr>
|
1806
|
-
<td class="parameter_name"><p>a</p></td>
|
1807
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1808
|
-
<td class="parameter_annotations"> </td>
|
1809
|
-
</tr>
|
1810
|
-
<tr>
|
1811
|
-
<td class="parameter_name"><p>b</p></td>
|
1812
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1813
|
-
<td class="parameter_annotations"> </td>
|
1814
|
-
</tr>
|
1815
|
-
<tr>
|
1816
|
-
<td class="parameter_name"><p>res</p></td>
|
1817
|
-
<td class="parameter_description"><p> return location for the resulting vector. </p></td>
|
1818
|
-
<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>
|
1819
|
-
</tr>
|
1820
|
-
</tbody>
|
1821
|
-
</table></div>
|
1822
|
-
</div>
|
1823
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1824
|
-
</div>
|
1825
|
-
<hr>
|
1826
|
-
<div class="refsect2">
|
1827
|
-
<a name="graphene-vec3-subtract"></a><h3>graphene_vec3_subtract ()</h3>
|
1828
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1829
|
-
graphene_vec3_subtract (<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> *a</code></em>,
|
1830
|
-
<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> *b</code></em>,
|
1831
|
-
<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> *res</code></em>);</pre>
|
1832
|
-
<p>Subtracts from each component of the first operand <em class="parameter"><code>a</code></em>
|
1833
|
-
the
|
1834
|
-
corresponding component of the second operand <em class="parameter"><code>b</code></em>
|
1835
|
-
and places
|
1836
|
-
each result into the components of <em class="parameter"><code>res</code></em>
|
1837
|
-
.</p>
|
1838
|
-
<div class="refsect3">
|
1839
|
-
<a name="graphene-vec3-subtract.parameters"></a><h4>Parameters</h4>
|
1840
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1841
|
-
<colgroup>
|
1842
|
-
<col width="150px" class="parameters_name">
|
1843
|
-
<col class="parameters_description">
|
1844
|
-
<col width="200px" class="parameters_annotations">
|
1845
|
-
</colgroup>
|
1846
|
-
<tbody>
|
1847
|
-
<tr>
|
1848
|
-
<td class="parameter_name"><p>a</p></td>
|
1849
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1850
|
-
<td class="parameter_annotations"> </td>
|
1851
|
-
</tr>
|
1852
|
-
<tr>
|
1853
|
-
<td class="parameter_name"><p>b</p></td>
|
1854
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1855
|
-
<td class="parameter_annotations"> </td>
|
1856
|
-
</tr>
|
1857
|
-
<tr>
|
1858
|
-
<td class="parameter_name"><p>res</p></td>
|
1859
|
-
<td class="parameter_description"><p> return location for the resulting vector. </p></td>
|
1860
|
-
<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>
|
1861
|
-
</tr>
|
1862
|
-
</tbody>
|
1863
|
-
</table></div>
|
1864
|
-
</div>
|
1865
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1866
|
-
</div>
|
1867
|
-
<hr>
|
1868
|
-
<div class="refsect2">
|
1869
|
-
<a name="graphene-vec3-multiply"></a><h3>graphene_vec3_multiply ()</h3>
|
1870
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1871
|
-
graphene_vec3_multiply (<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> *a</code></em>,
|
1872
|
-
<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> *b</code></em>,
|
1873
|
-
<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> *res</code></em>);</pre>
|
1874
|
-
<p>Multiplies each component of the two given vectors.</p>
|
1875
|
-
<div class="refsect3">
|
1876
|
-
<a name="graphene-vec3-multiply.parameters"></a><h4>Parameters</h4>
|
1877
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1878
|
-
<colgroup>
|
1879
|
-
<col width="150px" class="parameters_name">
|
1880
|
-
<col class="parameters_description">
|
1881
|
-
<col width="200px" class="parameters_annotations">
|
1882
|
-
</colgroup>
|
1883
|
-
<tbody>
|
1884
|
-
<tr>
|
1885
|
-
<td class="parameter_name"><p>a</p></td>
|
1886
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1887
|
-
<td class="parameter_annotations"> </td>
|
1888
|
-
</tr>
|
1889
|
-
<tr>
|
1890
|
-
<td class="parameter_name"><p>b</p></td>
|
1891
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1892
|
-
<td class="parameter_annotations"> </td>
|
1893
|
-
</tr>
|
1894
|
-
<tr>
|
1895
|
-
<td class="parameter_name"><p>res</p></td>
|
1896
|
-
<td class="parameter_description"><p> return location for the resulting vector. </p></td>
|
1897
|
-
<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>
|
1898
|
-
</tr>
|
1899
|
-
</tbody>
|
1900
|
-
</table></div>
|
1901
|
-
</div>
|
1902
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1903
|
-
</div>
|
1904
|
-
<hr>
|
1905
|
-
<div class="refsect2">
|
1906
|
-
<a name="graphene-vec3-divide"></a><h3>graphene_vec3_divide ()</h3>
|
1907
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1908
|
-
graphene_vec3_divide (<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> *a</code></em>,
|
1909
|
-
<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> *b</code></em>,
|
1910
|
-
<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> *res</code></em>);</pre>
|
1911
|
-
<p>Divides each component of the first operand <em class="parameter"><code>a</code></em>
|
1912
|
-
by the corresponding
|
1913
|
-
component of the second operand <em class="parameter"><code>b</code></em>
|
1914
|
-
, and places the results into the
|
1915
|
-
vector <em class="parameter"><code>res</code></em>
|
1916
|
-
.</p>
|
1917
|
-
<div class="refsect3">
|
1918
|
-
<a name="graphene-vec3-divide.parameters"></a><h4>Parameters</h4>
|
1919
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1920
|
-
<colgroup>
|
1921
|
-
<col width="150px" class="parameters_name">
|
1922
|
-
<col class="parameters_description">
|
1923
|
-
<col width="200px" class="parameters_annotations">
|
1924
|
-
</colgroup>
|
1925
|
-
<tbody>
|
1926
|
-
<tr>
|
1927
|
-
<td class="parameter_name"><p>a</p></td>
|
1928
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1929
|
-
<td class="parameter_annotations"> </td>
|
1930
|
-
</tr>
|
1931
|
-
<tr>
|
1932
|
-
<td class="parameter_name"><p>b</p></td>
|
1933
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1934
|
-
<td class="parameter_annotations"> </td>
|
1935
|
-
</tr>
|
1936
|
-
<tr>
|
1937
|
-
<td class="parameter_name"><p>res</p></td>
|
1938
|
-
<td class="parameter_description"><p> return location for the resulting vector. </p></td>
|
1939
|
-
<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>
|
1940
|
-
</tr>
|
1941
|
-
</tbody>
|
1942
|
-
</table></div>
|
1943
|
-
</div>
|
1944
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1945
|
-
</div>
|
1946
|
-
<hr>
|
1947
|
-
<div class="refsect2">
|
1948
|
-
<a name="graphene-vec3-cross"></a><h3>graphene_vec3_cross ()</h3>
|
1949
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
1950
|
-
graphene_vec3_cross (<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> *a</code></em>,
|
1951
|
-
<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> *b</code></em>,
|
1952
|
-
<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> *res</code></em>);</pre>
|
1953
|
-
<p>Computes the cross product of the two given vectors.</p>
|
1954
|
-
<div class="refsect3">
|
1955
|
-
<a name="graphene-vec3-cross.parameters"></a><h4>Parameters</h4>
|
1956
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1957
|
-
<colgroup>
|
1958
|
-
<col width="150px" class="parameters_name">
|
1959
|
-
<col class="parameters_description">
|
1960
|
-
<col width="200px" class="parameters_annotations">
|
1961
|
-
</colgroup>
|
1962
|
-
<tbody>
|
1963
|
-
<tr>
|
1964
|
-
<td class="parameter_name"><p>a</p></td>
|
1965
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1966
|
-
<td class="parameter_annotations"> </td>
|
1967
|
-
</tr>
|
1968
|
-
<tr>
|
1969
|
-
<td class="parameter_name"><p>b</p></td>
|
1970
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
1971
|
-
<td class="parameter_annotations"> </td>
|
1972
|
-
</tr>
|
1973
|
-
<tr>
|
1974
|
-
<td class="parameter_name"><p>res</p></td>
|
1975
|
-
<td class="parameter_description"><p> return location for the resulting vector. </p></td>
|
1976
|
-
<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>
|
1977
|
-
</tr>
|
1978
|
-
</tbody>
|
1979
|
-
</table></div>
|
1980
|
-
</div>
|
1981
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
1982
|
-
</div>
|
1983
|
-
<hr>
|
1984
|
-
<div class="refsect2">
|
1985
|
-
<a name="graphene-vec3-dot"></a><h3>graphene_vec3_dot ()</h3>
|
1986
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
1987
|
-
graphene_vec3_dot (<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> *a</code></em>,
|
1988
|
-
<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> *b</code></em>);</pre>
|
1989
|
-
<p>Computes the dot product of the two given vectors.</p>
|
1990
|
-
<div class="refsect3">
|
1991
|
-
<a name="graphene-vec3-dot.parameters"></a><h4>Parameters</h4>
|
1992
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1993
|
-
<colgroup>
|
1994
|
-
<col width="150px" class="parameters_name">
|
1995
|
-
<col class="parameters_description">
|
1996
|
-
<col width="200px" class="parameters_annotations">
|
1997
|
-
</colgroup>
|
1998
|
-
<tbody>
|
1999
|
-
<tr>
|
2000
|
-
<td class="parameter_name"><p>a</p></td>
|
2001
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2002
|
-
<td class="parameter_annotations"> </td>
|
2003
|
-
</tr>
|
2004
|
-
<tr>
|
2005
|
-
<td class="parameter_name"><p>b</p></td>
|
2006
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2007
|
-
<td class="parameter_annotations"> </td>
|
2008
|
-
</tr>
|
2009
|
-
</tbody>
|
2010
|
-
</table></div>
|
2011
|
-
</div>
|
2012
|
-
<div class="refsect3">
|
2013
|
-
<a name="graphene-vec3-dot.returns"></a><h4>Returns</h4>
|
2014
|
-
<p> the value of the dot product</p>
|
2015
|
-
</div>
|
2016
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2017
|
-
</div>
|
2018
|
-
<hr>
|
2019
|
-
<div class="refsect2">
|
2020
|
-
<a name="graphene-vec3-scale"></a><h3>graphene_vec3_scale ()</h3>
|
2021
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2022
|
-
graphene_vec3_scale (<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> *v</code></em>,
|
2023
|
-
<em class="parameter"><code><span class="type">float</span> factor</code></em>,
|
2024
|
-
<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> *res</code></em>);</pre>
|
2025
|
-
<p>Multiplies all components of the given vector with the given scalar <em class="parameter"><code>factor</code></em>
|
2026
|
-
.</p>
|
2027
|
-
<div class="refsect3">
|
2028
|
-
<a name="graphene-vec3-scale.parameters"></a><h4>Parameters</h4>
|
2029
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2030
|
-
<colgroup>
|
2031
|
-
<col width="150px" class="parameters_name">
|
2032
|
-
<col class="parameters_description">
|
2033
|
-
<col width="200px" class="parameters_annotations">
|
2034
|
-
</colgroup>
|
2035
|
-
<tbody>
|
2036
|
-
<tr>
|
2037
|
-
<td class="parameter_name"><p>v</p></td>
|
2038
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2039
|
-
<td class="parameter_annotations"> </td>
|
2040
|
-
</tr>
|
2041
|
-
<tr>
|
2042
|
-
<td class="parameter_name"><p>factor</p></td>
|
2043
|
-
<td class="parameter_description"><p>the scalar factor</p></td>
|
2044
|
-
<td class="parameter_annotations"> </td>
|
2045
|
-
</tr>
|
2046
|
-
<tr>
|
2047
|
-
<td class="parameter_name"><p>res</p></td>
|
2048
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
2049
|
-
<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>
|
2050
|
-
</tr>
|
2051
|
-
</tbody>
|
2052
|
-
</table></div>
|
2053
|
-
</div>
|
2054
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
2055
|
-
</div>
|
2056
|
-
<hr>
|
2057
|
-
<div class="refsect2">
|
2058
|
-
<a name="graphene-vec3-length"></a><h3>graphene_vec3_length ()</h3>
|
2059
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
2060
|
-
graphene_vec3_length (<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> *v</code></em>);</pre>
|
2061
|
-
<p>Retrieves the length of the given vector <em class="parameter"><code>v</code></em>
|
2062
|
-
.</p>
|
2063
|
-
<div class="refsect3">
|
2064
|
-
<a name="graphene-vec3-length.parameters"></a><h4>Parameters</h4>
|
2065
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2066
|
-
<colgroup>
|
2067
|
-
<col width="150px" class="parameters_name">
|
2068
|
-
<col class="parameters_description">
|
2069
|
-
<col width="200px" class="parameters_annotations">
|
2070
|
-
</colgroup>
|
2071
|
-
<tbody><tr>
|
2072
|
-
<td class="parameter_name"><p>v</p></td>
|
2073
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2074
|
-
<td class="parameter_annotations"> </td>
|
2075
|
-
</tr></tbody>
|
2076
|
-
</table></div>
|
2077
|
-
</div>
|
2078
|
-
<div class="refsect3">
|
2079
|
-
<a name="graphene-vec3-length.returns"></a><h4>Returns</h4>
|
2080
|
-
<p> the value of the length of the vector</p>
|
2081
|
-
</div>
|
2082
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2083
|
-
</div>
|
2084
|
-
<hr>
|
2085
|
-
<div class="refsect2">
|
2086
|
-
<a name="graphene-vec3-normalize"></a><h3>graphene_vec3_normalize ()</h3>
|
2087
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2088
|
-
graphene_vec3_normalize (<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> *v</code></em>,
|
2089
|
-
<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> *res</code></em>);</pre>
|
2090
|
-
<p>Normalizes the given <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>.</p>
|
2091
|
-
<div class="refsect3">
|
2092
|
-
<a name="graphene-vec3-normalize.parameters"></a><h4>Parameters</h4>
|
2093
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2094
|
-
<colgroup>
|
2095
|
-
<col width="150px" class="parameters_name">
|
2096
|
-
<col class="parameters_description">
|
2097
|
-
<col width="200px" class="parameters_annotations">
|
2098
|
-
</colgroup>
|
2099
|
-
<tbody>
|
2100
|
-
<tr>
|
2101
|
-
<td class="parameter_name"><p>v</p></td>
|
2102
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2103
|
-
<td class="parameter_annotations"> </td>
|
2104
|
-
</tr>
|
2105
|
-
<tr>
|
2106
|
-
<td class="parameter_name"><p>res</p></td>
|
2107
|
-
<td class="parameter_description"><p> return location for the normalized vector. </p></td>
|
2108
|
-
<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>
|
2109
|
-
</tr>
|
2110
|
-
</tbody>
|
2111
|
-
</table></div>
|
2112
|
-
</div>
|
2113
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2114
|
-
</div>
|
2115
|
-
<hr>
|
2116
|
-
<div class="refsect2">
|
2117
|
-
<a name="graphene-vec3-negate"></a><h3>graphene_vec3_negate ()</h3>
|
2118
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2119
|
-
graphene_vec3_negate (<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> *v</code></em>,
|
2120
|
-
<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> *res</code></em>);</pre>
|
2121
|
-
<p>Negates the given <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>.</p>
|
2122
|
-
<div class="refsect3">
|
2123
|
-
<a name="graphene-vec3-negate.parameters"></a><h4>Parameters</h4>
|
2124
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2125
|
-
<colgroup>
|
2126
|
-
<col width="150px" class="parameters_name">
|
2127
|
-
<col class="parameters_description">
|
2128
|
-
<col width="200px" class="parameters_annotations">
|
2129
|
-
</colgroup>
|
2130
|
-
<tbody>
|
2131
|
-
<tr>
|
2132
|
-
<td class="parameter_name"><p>v</p></td>
|
2133
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2134
|
-
<td class="parameter_annotations"> </td>
|
2135
|
-
</tr>
|
2136
|
-
<tr>
|
2137
|
-
<td class="parameter_name"><p>res</p></td>
|
2138
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
2139
|
-
<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>
|
2140
|
-
</tr>
|
2141
|
-
</tbody>
|
2142
|
-
</table></div>
|
2143
|
-
</div>
|
2144
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
2145
|
-
</div>
|
2146
|
-
<hr>
|
2147
|
-
<div class="refsect2">
|
2148
|
-
<a name="graphene-vec3-equal"></a><h3>graphene_vec3_equal ()</h3>
|
2149
|
-
<pre class="programlisting"><span class="returnvalue">bool</span>
|
2150
|
-
graphene_vec3_equal (<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> *v1</code></em>,
|
2151
|
-
<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> *v2</code></em>);</pre>
|
2152
|
-
<p>Checks whether the two given <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> are equal.</p>
|
2153
|
-
<div class="refsect3">
|
2154
|
-
<a name="graphene-vec3-equal.parameters"></a><h4>Parameters</h4>
|
2155
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2156
|
-
<colgroup>
|
2157
|
-
<col width="150px" class="parameters_name">
|
2158
|
-
<col class="parameters_description">
|
2159
|
-
<col width="200px" class="parameters_annotations">
|
2160
|
-
</colgroup>
|
2161
|
-
<tbody>
|
2162
|
-
<tr>
|
2163
|
-
<td class="parameter_name"><p>v1</p></td>
|
2164
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2165
|
-
<td class="parameter_annotations"> </td>
|
2166
|
-
</tr>
|
2167
|
-
<tr>
|
2168
|
-
<td class="parameter_name"><p>v2</p></td>
|
2169
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2170
|
-
<td class="parameter_annotations"> </td>
|
2171
|
-
</tr>
|
2172
|
-
</tbody>
|
2173
|
-
</table></div>
|
2174
|
-
</div>
|
2175
|
-
<div class="refsect3">
|
2176
|
-
<a name="graphene-vec3-equal.returns"></a><h4>Returns</h4>
|
2177
|
-
<p> <code class="literal">true</code> if the two vectors are equal, and false otherwise</p>
|
2178
|
-
</div>
|
2179
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
2180
|
-
</div>
|
2181
|
-
<hr>
|
2182
|
-
<div class="refsect2">
|
2183
|
-
<a name="graphene-vec3-near"></a><h3>graphene_vec3_near ()</h3>
|
2184
|
-
<pre class="programlisting"><span class="returnvalue">bool</span>
|
2185
|
-
graphene_vec3_near (<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> *v1</code></em>,
|
2186
|
-
<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> *v2</code></em>,
|
2187
|
-
<em class="parameter"><code><span class="type">float</span> epsilon</code></em>);</pre>
|
2188
|
-
<p>Compares the two given <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> vectors and checks
|
2189
|
-
whether their values are within the given <em class="parameter"><code>epsilon</code></em>
|
2190
|
-
.</p>
|
2191
|
-
<div class="refsect3">
|
2192
|
-
<a name="graphene-vec3-near.parameters"></a><h4>Parameters</h4>
|
2193
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2194
|
-
<colgroup>
|
2195
|
-
<col width="150px" class="parameters_name">
|
2196
|
-
<col class="parameters_description">
|
2197
|
-
<col width="200px" class="parameters_annotations">
|
2198
|
-
</colgroup>
|
2199
|
-
<tbody>
|
2200
|
-
<tr>
|
2201
|
-
<td class="parameter_name"><p>v1</p></td>
|
2202
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2203
|
-
<td class="parameter_annotations"> </td>
|
2204
|
-
</tr>
|
2205
|
-
<tr>
|
2206
|
-
<td class="parameter_name"><p>v2</p></td>
|
2207
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2208
|
-
<td class="parameter_annotations"> </td>
|
2209
|
-
</tr>
|
2210
|
-
<tr>
|
2211
|
-
<td class="parameter_name"><p>epsilon</p></td>
|
2212
|
-
<td class="parameter_description"><p>the threshold between the two vectors</p></td>
|
2213
|
-
<td class="parameter_annotations"> </td>
|
2214
|
-
</tr>
|
2215
|
-
</tbody>
|
2216
|
-
</table></div>
|
2217
|
-
</div>
|
2218
|
-
<div class="refsect3">
|
2219
|
-
<a name="graphene-vec3-near.returns"></a><h4>Returns</h4>
|
2220
|
-
<p> <code class="literal">true</code> if the two vectors are near each other</p>
|
2221
|
-
</div>
|
2222
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
2223
|
-
</div>
|
2224
|
-
<hr>
|
2225
|
-
<div class="refsect2">
|
2226
|
-
<a name="graphene-vec3-min"></a><h3>graphene_vec3_min ()</h3>
|
2227
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2228
|
-
graphene_vec3_min (<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> *a</code></em>,
|
2229
|
-
<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> *b</code></em>,
|
2230
|
-
<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> *res</code></em>);</pre>
|
2231
|
-
<p>Compares each component of the two given vectors and creates a
|
2232
|
-
vector that contains the minimum values.</p>
|
2233
|
-
<div class="refsect3">
|
2234
|
-
<a name="graphene-vec3-min.parameters"></a><h4>Parameters</h4>
|
2235
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2236
|
-
<colgroup>
|
2237
|
-
<col width="150px" class="parameters_name">
|
2238
|
-
<col class="parameters_description">
|
2239
|
-
<col width="200px" class="parameters_annotations">
|
2240
|
-
</colgroup>
|
2241
|
-
<tbody>
|
2242
|
-
<tr>
|
2243
|
-
<td class="parameter_name"><p>a</p></td>
|
2244
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2245
|
-
<td class="parameter_annotations"> </td>
|
2246
|
-
</tr>
|
2247
|
-
<tr>
|
2248
|
-
<td class="parameter_name"><p>b</p></td>
|
2249
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2250
|
-
<td class="parameter_annotations"> </td>
|
2251
|
-
</tr>
|
2252
|
-
<tr>
|
2253
|
-
<td class="parameter_name"><p>res</p></td>
|
2254
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
2255
|
-
<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>
|
2256
|
-
</tr>
|
2257
|
-
</tbody>
|
2258
|
-
</table></div>
|
2259
|
-
</div>
|
2260
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2261
|
-
</div>
|
2262
|
-
<hr>
|
2263
|
-
<div class="refsect2">
|
2264
|
-
<a name="graphene-vec3-max"></a><h3>graphene_vec3_max ()</h3>
|
2265
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2266
|
-
graphene_vec3_max (<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> *a</code></em>,
|
2267
|
-
<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> *b</code></em>,
|
2268
|
-
<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> *res</code></em>);</pre>
|
2269
|
-
<p>Compares each component of the two given vectors and creates a
|
2270
|
-
vector that contains the maximum values.</p>
|
2271
|
-
<div class="refsect3">
|
2272
|
-
<a name="graphene-vec3-max.parameters"></a><h4>Parameters</h4>
|
2273
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2274
|
-
<colgroup>
|
2275
|
-
<col width="150px" class="parameters_name">
|
2276
|
-
<col class="parameters_description">
|
2277
|
-
<col width="200px" class="parameters_annotations">
|
2278
|
-
</colgroup>
|
2279
|
-
<tbody>
|
2280
|
-
<tr>
|
2281
|
-
<td class="parameter_name"><p>a</p></td>
|
2282
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2283
|
-
<td class="parameter_annotations"> </td>
|
2284
|
-
</tr>
|
2285
|
-
<tr>
|
2286
|
-
<td class="parameter_name"><p>b</p></td>
|
2287
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2288
|
-
<td class="parameter_annotations"> </td>
|
2289
|
-
</tr>
|
2290
|
-
<tr>
|
2291
|
-
<td class="parameter_name"><p>res</p></td>
|
2292
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
2293
|
-
<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>
|
2294
|
-
</tr>
|
2295
|
-
</tbody>
|
2296
|
-
</table></div>
|
2297
|
-
</div>
|
2298
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2299
|
-
</div>
|
2300
|
-
<hr>
|
2301
|
-
<div class="refsect2">
|
2302
|
-
<a name="graphene-vec3-get-x"></a><h3>graphene_vec3_get_x ()</h3>
|
2303
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
2304
|
-
graphene_vec3_get_x (<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> *v</code></em>);</pre>
|
2305
|
-
<p>Retrieves the first component of the given vector <em class="parameter"><code>v</code></em>
|
2306
|
-
.</p>
|
2307
|
-
<div class="refsect3">
|
2308
|
-
<a name="graphene-vec3-get-x.parameters"></a><h4>Parameters</h4>
|
2309
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2310
|
-
<colgroup>
|
2311
|
-
<col width="150px" class="parameters_name">
|
2312
|
-
<col class="parameters_description">
|
2313
|
-
<col width="200px" class="parameters_annotations">
|
2314
|
-
</colgroup>
|
2315
|
-
<tbody><tr>
|
2316
|
-
<td class="parameter_name"><p>v</p></td>
|
2317
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2318
|
-
<td class="parameter_annotations"> </td>
|
2319
|
-
</tr></tbody>
|
2320
|
-
</table></div>
|
2321
|
-
</div>
|
2322
|
-
<div class="refsect3">
|
2323
|
-
<a name="graphene-vec3-get-x.returns"></a><h4>Returns</h4>
|
2324
|
-
<p> the value of the first component of the vector</p>
|
2325
|
-
</div>
|
2326
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2327
|
-
</div>
|
2328
|
-
<hr>
|
2329
|
-
<div class="refsect2">
|
2330
|
-
<a name="graphene-vec3-get-y"></a><h3>graphene_vec3_get_y ()</h3>
|
2331
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
2332
|
-
graphene_vec3_get_y (<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> *v</code></em>);</pre>
|
2333
|
-
<p>Retrieves the second component of the given vector <em class="parameter"><code>v</code></em>
|
2334
|
-
.</p>
|
2335
|
-
<div class="refsect3">
|
2336
|
-
<a name="graphene-vec3-get-y.parameters"></a><h4>Parameters</h4>
|
2337
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2338
|
-
<colgroup>
|
2339
|
-
<col width="150px" class="parameters_name">
|
2340
|
-
<col class="parameters_description">
|
2341
|
-
<col width="200px" class="parameters_annotations">
|
2342
|
-
</colgroup>
|
2343
|
-
<tbody><tr>
|
2344
|
-
<td class="parameter_name"><p>v</p></td>
|
2345
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2346
|
-
<td class="parameter_annotations"> </td>
|
2347
|
-
</tr></tbody>
|
2348
|
-
</table></div>
|
2349
|
-
</div>
|
2350
|
-
<div class="refsect3">
|
2351
|
-
<a name="graphene-vec3-get-y.returns"></a><h4>Returns</h4>
|
2352
|
-
<p> the value of the second component of the vector</p>
|
2353
|
-
</div>
|
2354
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2355
|
-
</div>
|
2356
|
-
<hr>
|
2357
|
-
<div class="refsect2">
|
2358
|
-
<a name="graphene-vec3-get-z"></a><h3>graphene_vec3_get_z ()</h3>
|
2359
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
2360
|
-
graphene_vec3_get_z (<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> *v</code></em>);</pre>
|
2361
|
-
<p>Retrieves the third component of the given vector <em class="parameter"><code>v</code></em>
|
2362
|
-
.</p>
|
2363
|
-
<div class="refsect3">
|
2364
|
-
<a name="graphene-vec3-get-z.parameters"></a><h4>Parameters</h4>
|
2365
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2366
|
-
<colgroup>
|
2367
|
-
<col width="150px" class="parameters_name">
|
2368
|
-
<col class="parameters_description">
|
2369
|
-
<col width="200px" class="parameters_annotations">
|
2370
|
-
</colgroup>
|
2371
|
-
<tbody><tr>
|
2372
|
-
<td class="parameter_name"><p>v</p></td>
|
2373
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2374
|
-
<td class="parameter_annotations"> </td>
|
2375
|
-
</tr></tbody>
|
2376
|
-
</table></div>
|
2377
|
-
</div>
|
2378
|
-
<div class="refsect3">
|
2379
|
-
<a name="graphene-vec3-get-z.returns"></a><h4>Returns</h4>
|
2380
|
-
<p> the value of the third component of the vector</p>
|
2381
|
-
</div>
|
2382
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2383
|
-
</div>
|
2384
|
-
<hr>
|
2385
|
-
<div class="refsect2">
|
2386
|
-
<a name="graphene-vec3-get-xy"></a><h3>graphene_vec3_get_xy ()</h3>
|
2387
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2388
|
-
graphene_vec3_get_xy (<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> *v</code></em>,
|
2389
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
2390
|
-
<p>Creates a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> that contains the first and second
|
2391
|
-
components of the given <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>.</p>
|
2392
|
-
<div class="refsect3">
|
2393
|
-
<a name="graphene-vec3-get-xy.parameters"></a><h4>Parameters</h4>
|
2394
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2395
|
-
<colgroup>
|
2396
|
-
<col width="150px" class="parameters_name">
|
2397
|
-
<col class="parameters_description">
|
2398
|
-
<col width="200px" class="parameters_annotations">
|
2399
|
-
</colgroup>
|
2400
|
-
<tbody>
|
2401
|
-
<tr>
|
2402
|
-
<td class="parameter_name"><p>v</p></td>
|
2403
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2404
|
-
<td class="parameter_annotations"> </td>
|
2405
|
-
</tr>
|
2406
|
-
<tr>
|
2407
|
-
<td class="parameter_name"><p>res</p></td>
|
2408
|
-
<td class="parameter_description"><p> return location for a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>. </p></td>
|
2409
|
-
<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>
|
2410
|
-
</tr>
|
2411
|
-
</tbody>
|
2412
|
-
</table></div>
|
2413
|
-
</div>
|
2414
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2415
|
-
</div>
|
2416
|
-
<hr>
|
2417
|
-
<div class="refsect2">
|
2418
|
-
<a name="graphene-vec3-get-xy0"></a><h3>graphene_vec3_get_xy0 ()</h3>
|
2419
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2420
|
-
graphene_vec3_get_xy0 (<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> *v</code></em>,
|
2421
|
-
<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> *res</code></em>);</pre>
|
2422
|
-
<p>Creates a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> that contains the first two components of
|
2423
|
-
the given <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>, and the third component set to 0.</p>
|
2424
|
-
<div class="refsect3">
|
2425
|
-
<a name="graphene-vec3-get-xy0.parameters"></a><h4>Parameters</h4>
|
2426
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2427
|
-
<colgroup>
|
2428
|
-
<col width="150px" class="parameters_name">
|
2429
|
-
<col class="parameters_description">
|
2430
|
-
<col width="200px" class="parameters_annotations">
|
2431
|
-
</colgroup>
|
2432
|
-
<tbody>
|
2433
|
-
<tr>
|
2434
|
-
<td class="parameter_name"><p>v</p></td>
|
2435
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2436
|
-
<td class="parameter_annotations"> </td>
|
2437
|
-
</tr>
|
2438
|
-
<tr>
|
2439
|
-
<td class="parameter_name"><p>res</p></td>
|
2440
|
-
<td class="parameter_description"><p> return location for a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>. </p></td>
|
2441
|
-
<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>
|
2442
|
-
</tr>
|
2443
|
-
</tbody>
|
2444
|
-
</table></div>
|
2445
|
-
</div>
|
2446
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2447
|
-
</div>
|
2448
|
-
<hr>
|
2449
|
-
<div class="refsect2">
|
2450
|
-
<a name="graphene-vec3-get-xyz0"></a><h3>graphene_vec3_get_xyz0 ()</h3>
|
2451
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2452
|
-
graphene_vec3_get_xyz0 (<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> *v</code></em>,
|
2453
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
2454
|
-
<p>Converts a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> in a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> using 0.0
|
2455
|
-
as the value for the fourth component of the resulting vector.</p>
|
2456
|
-
<div class="refsect3">
|
2457
|
-
<a name="graphene-vec3-get-xyz0.parameters"></a><h4>Parameters</h4>
|
2458
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2459
|
-
<colgroup>
|
2460
|
-
<col width="150px" class="parameters_name">
|
2461
|
-
<col class="parameters_description">
|
2462
|
-
<col width="200px" class="parameters_annotations">
|
2463
|
-
</colgroup>
|
2464
|
-
<tbody>
|
2465
|
-
<tr>
|
2466
|
-
<td class="parameter_name"><p>v</p></td>
|
2467
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2468
|
-
<td class="parameter_annotations"> </td>
|
2469
|
-
</tr>
|
2470
|
-
<tr>
|
2471
|
-
<td class="parameter_name"><p>res</p></td>
|
2472
|
-
<td class="parameter_description"><p> return location for the vector. </p></td>
|
2473
|
-
<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>
|
2474
|
-
</tr>
|
2475
|
-
</tbody>
|
2476
|
-
</table></div>
|
2477
|
-
</div>
|
2478
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2479
|
-
</div>
|
2480
|
-
<hr>
|
2481
|
-
<div class="refsect2">
|
2482
|
-
<a name="graphene-vec3-get-xyz1"></a><h3>graphene_vec3_get_xyz1 ()</h3>
|
2483
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2484
|
-
graphene_vec3_get_xyz1 (<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> *v</code></em>,
|
2485
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
2486
|
-
<p>Converts a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> in a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> using 1.0
|
2487
|
-
as the value for the fourth component of the resulting vector.</p>
|
2488
|
-
<div class="refsect3">
|
2489
|
-
<a name="graphene-vec3-get-xyz1.parameters"></a><h4>Parameters</h4>
|
2490
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2491
|
-
<colgroup>
|
2492
|
-
<col width="150px" class="parameters_name">
|
2493
|
-
<col class="parameters_description">
|
2494
|
-
<col width="200px" class="parameters_annotations">
|
2495
|
-
</colgroup>
|
2496
|
-
<tbody>
|
2497
|
-
<tr>
|
2498
|
-
<td class="parameter_name"><p>v</p></td>
|
2499
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2500
|
-
<td class="parameter_annotations"> </td>
|
2501
|
-
</tr>
|
2502
|
-
<tr>
|
2503
|
-
<td class="parameter_name"><p>res</p></td>
|
2504
|
-
<td class="parameter_description"><p> return location for the vector. </p></td>
|
2505
|
-
<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>
|
2506
|
-
</tr>
|
2507
|
-
</tbody>
|
2508
|
-
</table></div>
|
2509
|
-
</div>
|
2510
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2511
|
-
</div>
|
2512
|
-
<hr>
|
2513
|
-
<div class="refsect2">
|
2514
|
-
<a name="graphene-vec3-get-xyzw"></a><h3>graphene_vec3_get_xyzw ()</h3>
|
2515
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2516
|
-
graphene_vec3_get_xyzw (<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> *v</code></em>,
|
2517
|
-
<em class="parameter"><code><span class="type">float</span> w</code></em>,
|
2518
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
2519
|
-
<p>Converts a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> in a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> using <em class="parameter"><code>w</code></em>
|
2520
|
-
as
|
2521
|
-
the value of the fourth component of the resulting vector.</p>
|
2522
|
-
<div class="refsect3">
|
2523
|
-
<a name="graphene-vec3-get-xyzw.parameters"></a><h4>Parameters</h4>
|
2524
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2525
|
-
<colgroup>
|
2526
|
-
<col width="150px" class="parameters_name">
|
2527
|
-
<col class="parameters_description">
|
2528
|
-
<col width="200px" class="parameters_annotations">
|
2529
|
-
</colgroup>
|
2530
|
-
<tbody>
|
2531
|
-
<tr>
|
2532
|
-
<td class="parameter_name"><p>v</p></td>
|
2533
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2534
|
-
<td class="parameter_annotations"> </td>
|
2535
|
-
</tr>
|
2536
|
-
<tr>
|
2537
|
-
<td class="parameter_name"><p>w</p></td>
|
2538
|
-
<td class="parameter_description"><p>the value of the W component</p></td>
|
2539
|
-
<td class="parameter_annotations"> </td>
|
2540
|
-
</tr>
|
2541
|
-
<tr>
|
2542
|
-
<td class="parameter_name"><p>res</p></td>
|
2543
|
-
<td class="parameter_description"><p> return location for the vector. </p></td>
|
2544
|
-
<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>
|
2545
|
-
</tr>
|
2546
|
-
</tbody>
|
2547
|
-
</table></div>
|
2548
|
-
</div>
|
2549
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2550
|
-
</div>
|
2551
|
-
<hr>
|
2552
|
-
<div class="refsect2">
|
2553
|
-
<a name="graphene-vec3-zero"></a><h3>graphene_vec3_zero ()</h3>
|
2554
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
2555
|
-
graphene_vec3_zero (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
2556
|
-
<p>Provides a constant pointer to a vector with three components,
|
2557
|
-
all sets to 0.</p>
|
2558
|
-
<div class="refsect3">
|
2559
|
-
<a name="graphene-vec3-zero.returns"></a><h4>Returns</h4>
|
2560
|
-
<p> a constant vector. </p>
|
2561
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2562
|
-
</div>
|
2563
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2564
|
-
</div>
|
2565
|
-
<hr>
|
2566
|
-
<div class="refsect2">
|
2567
|
-
<a name="graphene-vec3-one"></a><h3>graphene_vec3_one ()</h3>
|
2568
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
2569
|
-
graphene_vec3_one (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
2570
|
-
<p>Provides a constant pointer to a vector with three components,
|
2571
|
-
all sets to 1.</p>
|
2572
|
-
<div class="refsect3">
|
2573
|
-
<a name="graphene-vec3-one.returns"></a><h4>Returns</h4>
|
2574
|
-
<p> a constant vector. </p>
|
2575
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2576
|
-
</div>
|
2577
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2578
|
-
</div>
|
2579
|
-
<hr>
|
2580
|
-
<div class="refsect2">
|
2581
|
-
<a name="graphene-vec3-x-axis"></a><h3>graphene_vec3_x_axis ()</h3>
|
2582
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
2583
|
-
graphene_vec3_x_axis (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
2584
|
-
<p>Provides a constant pointer to a vector with three components
|
2585
|
-
with values set to (1, 0, 0).</p>
|
2586
|
-
<div class="refsect3">
|
2587
|
-
<a name="graphene-vec3-x-axis.returns"></a><h4>Returns</h4>
|
2588
|
-
<p> a constant vector. </p>
|
2589
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2590
|
-
</div>
|
2591
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2592
|
-
</div>
|
2593
|
-
<hr>
|
2594
|
-
<div class="refsect2">
|
2595
|
-
<a name="graphene-vec3-y-axis"></a><h3>graphene_vec3_y_axis ()</h3>
|
2596
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
2597
|
-
graphene_vec3_y_axis (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
2598
|
-
<p>Provides a constant pointer to a vector with three components
|
2599
|
-
with values set to (0, 1, 0).</p>
|
2600
|
-
<div class="refsect3">
|
2601
|
-
<a name="graphene-vec3-y-axis.returns"></a><h4>Returns</h4>
|
2602
|
-
<p> a constant vector. </p>
|
2603
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2604
|
-
</div>
|
2605
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2606
|
-
</div>
|
2607
|
-
<hr>
|
2608
|
-
<div class="refsect2">
|
2609
|
-
<a name="graphene-vec3-z-axis"></a><h3>graphene_vec3_z_axis ()</h3>
|
2610
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="returnvalue">graphene_vec3_t</span></a> *
|
2611
|
-
graphene_vec3_z_axis (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
2612
|
-
<p>Provides a constant pointer to a vector with three components
|
2613
|
-
with values set to (0, 0, 1).</p>
|
2614
|
-
<div class="refsect3">
|
2615
|
-
<a name="graphene-vec3-z-axis.returns"></a><h4>Returns</h4>
|
2616
|
-
<p> a constant vector. </p>
|
2617
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2618
|
-
</div>
|
2619
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2620
|
-
</div>
|
2621
|
-
<hr>
|
2622
|
-
<div class="refsect2">
|
2623
|
-
<a name="graphene-vec4-alloc"></a><h3>graphene_vec4_alloc ()</h3>
|
2624
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
2625
|
-
graphene_vec4_alloc (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
2626
|
-
<p>Allocates a new <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> structure.</p>
|
2627
|
-
<p>The contents of the returned structure are undefined.</p>
|
2628
|
-
<p>Use <a class="link" href="graphene-Vectors.html#graphene-vec4-init" title="graphene_vec4_init ()"><code class="function">graphene_vec4_init()</code></a> to initialize the vector.</p>
|
2629
|
-
<p><span class="annotation">[<acronym title="This symbol is a constructor, not a static method."><span class="acronym">constructor</span></acronym>]</span></p>
|
2630
|
-
<div class="refsect3">
|
2631
|
-
<a name="graphene-vec4-alloc.returns"></a><h4>Returns</h4>
|
2632
|
-
<p> the newly allocated <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>
|
2633
|
-
structure. Use <a class="link" href="graphene-Vectors.html#graphene-vec4-free" title="graphene_vec4_free ()"><code class="function">graphene_vec4_free()</code></a> to free the resources allocated
|
2634
|
-
by this function. </p>
|
2635
|
-
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
2636
|
-
</div>
|
2637
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2638
|
-
</div>
|
2639
|
-
<hr>
|
2640
|
-
<div class="refsect2">
|
2641
|
-
<a name="graphene-vec4-free"></a><h3>graphene_vec4_free ()</h3>
|
2642
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2643
|
-
graphene_vec4_free (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *v</code></em>);</pre>
|
2644
|
-
<p>Frees the resources allocated by <em class="parameter"><code>v</code></em>
|
2645
|
-
</p>
|
2646
|
-
<div class="refsect3">
|
2647
|
-
<a name="graphene-vec4-free.parameters"></a><h4>Parameters</h4>
|
2648
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2649
|
-
<colgroup>
|
2650
|
-
<col width="150px" class="parameters_name">
|
2651
|
-
<col class="parameters_description">
|
2652
|
-
<col width="200px" class="parameters_annotations">
|
2653
|
-
</colgroup>
|
2654
|
-
<tbody><tr>
|
2655
|
-
<td class="parameter_name"><p>v</p></td>
|
2656
|
-
<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></p></td>
|
2657
|
-
<td class="parameter_annotations"> </td>
|
2658
|
-
</tr></tbody>
|
2659
|
-
</table></div>
|
2660
|
-
</div>
|
2661
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2662
|
-
</div>
|
2663
|
-
<hr>
|
2664
|
-
<div class="refsect2">
|
2665
|
-
<a name="graphene-vec4-init"></a><h3>graphene_vec4_init ()</h3>
|
2666
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
2667
|
-
graphene_vec4_init (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *v</code></em>,
|
2668
|
-
<em class="parameter"><code><span class="type">float</span> x</code></em>,
|
2669
|
-
<em class="parameter"><code><span class="type">float</span> y</code></em>,
|
2670
|
-
<em class="parameter"><code><span class="type">float</span> z</code></em>,
|
2671
|
-
<em class="parameter"><code><span class="type">float</span> w</code></em>);</pre>
|
2672
|
-
<p>Initializes a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> using the given values.</p>
|
2673
|
-
<p>This function can be called multiple times.</p>
|
2674
|
-
<div class="refsect3">
|
2675
|
-
<a name="graphene-vec4-init.parameters"></a><h4>Parameters</h4>
|
2676
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2677
|
-
<colgroup>
|
2678
|
-
<col width="150px" class="parameters_name">
|
2679
|
-
<col class="parameters_description">
|
2680
|
-
<col width="200px" class="parameters_annotations">
|
2681
|
-
</colgroup>
|
2682
|
-
<tbody>
|
2683
|
-
<tr>
|
2684
|
-
<td class="parameter_name"><p>v</p></td>
|
2685
|
-
<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></p></td>
|
2686
|
-
<td class="parameter_annotations"> </td>
|
2687
|
-
</tr>
|
2688
|
-
<tr>
|
2689
|
-
<td class="parameter_name"><p>x</p></td>
|
2690
|
-
<td class="parameter_description"><p>the X field of the vector</p></td>
|
2691
|
-
<td class="parameter_annotations"> </td>
|
2692
|
-
</tr>
|
2693
|
-
<tr>
|
2694
|
-
<td class="parameter_name"><p>y</p></td>
|
2695
|
-
<td class="parameter_description"><p>the Y field of the vector</p></td>
|
2696
|
-
<td class="parameter_annotations"> </td>
|
2697
|
-
</tr>
|
2698
|
-
<tr>
|
2699
|
-
<td class="parameter_name"><p>z</p></td>
|
2700
|
-
<td class="parameter_description"><p>the Z field of the vector</p></td>
|
2701
|
-
<td class="parameter_annotations"> </td>
|
2702
|
-
</tr>
|
2703
|
-
<tr>
|
2704
|
-
<td class="parameter_name"><p>w</p></td>
|
2705
|
-
<td class="parameter_description"><p>the W field of the vector</p></td>
|
2706
|
-
<td class="parameter_annotations"> </td>
|
2707
|
-
</tr>
|
2708
|
-
</tbody>
|
2709
|
-
</table></div>
|
2710
|
-
</div>
|
2711
|
-
<div class="refsect3">
|
2712
|
-
<a name="graphene-vec4-init.returns"></a><h4>Returns</h4>
|
2713
|
-
<p> a pointer to the initialized
|
2714
|
-
vector. </p>
|
2715
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2716
|
-
</div>
|
2717
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2718
|
-
</div>
|
2719
|
-
<hr>
|
2720
|
-
<div class="refsect2">
|
2721
|
-
<a name="graphene-vec4-init-from-vec4"></a><h3>graphene_vec4_init_from_vec4 ()</h3>
|
2722
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
2723
|
-
graphene_vec4_init_from_vec4 (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *v</code></em>,
|
2724
|
-
<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>
|
2725
|
-
<p>Initializes a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> using the components of
|
2726
|
-
another <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
2727
|
-
<div class="refsect3">
|
2728
|
-
<a name="graphene-vec4-init-from-vec4.parameters"></a><h4>Parameters</h4>
|
2729
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2730
|
-
<colgroup>
|
2731
|
-
<col width="150px" class="parameters_name">
|
2732
|
-
<col class="parameters_description">
|
2733
|
-
<col width="200px" class="parameters_annotations">
|
2734
|
-
</colgroup>
|
2735
|
-
<tbody>
|
2736
|
-
<tr>
|
2737
|
-
<td class="parameter_name"><p>v</p></td>
|
2738
|
-
<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></p></td>
|
2739
|
-
<td class="parameter_annotations"> </td>
|
2740
|
-
</tr>
|
2741
|
-
<tr>
|
2742
|
-
<td class="parameter_name"><p>src</p></td>
|
2743
|
-
<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></p></td>
|
2744
|
-
<td class="parameter_annotations"> </td>
|
2745
|
-
</tr>
|
2746
|
-
</tbody>
|
2747
|
-
</table></div>
|
2748
|
-
</div>
|
2749
|
-
<div class="refsect3">
|
2750
|
-
<a name="graphene-vec4-init-from-vec4.returns"></a><h4>Returns</h4>
|
2751
|
-
<p> the initialized vector. </p>
|
2752
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2753
|
-
</div>
|
2754
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2755
|
-
</div>
|
2756
|
-
<hr>
|
2757
|
-
<div class="refsect2">
|
2758
|
-
<a name="graphene-vec4-init-from-vec3"></a><h3>graphene_vec4_init_from_vec3 ()</h3>
|
2759
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
2760
|
-
graphene_vec4_init_from_vec3 (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *v</code></em>,
|
2761
|
-
<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> *src</code></em>,
|
2762
|
-
<em class="parameter"><code><span class="type">float</span> w</code></em>);</pre>
|
2763
|
-
<p>Initializes a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> using the components of a
|
2764
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> and the value of <em class="parameter"><code>w</code></em>
|
2765
|
-
.</p>
|
2766
|
-
<div class="refsect3">
|
2767
|
-
<a name="graphene-vec4-init-from-vec3.parameters"></a><h4>Parameters</h4>
|
2768
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2769
|
-
<colgroup>
|
2770
|
-
<col width="150px" class="parameters_name">
|
2771
|
-
<col class="parameters_description">
|
2772
|
-
<col width="200px" class="parameters_annotations">
|
2773
|
-
</colgroup>
|
2774
|
-
<tbody>
|
2775
|
-
<tr>
|
2776
|
-
<td class="parameter_name"><p>v</p></td>
|
2777
|
-
<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></p></td>
|
2778
|
-
<td class="parameter_annotations"> </td>
|
2779
|
-
</tr>
|
2780
|
-
<tr>
|
2781
|
-
<td class="parameter_name"><p>src</p></td>
|
2782
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a></p></td>
|
2783
|
-
<td class="parameter_annotations"> </td>
|
2784
|
-
</tr>
|
2785
|
-
<tr>
|
2786
|
-
<td class="parameter_name"><p>w</p></td>
|
2787
|
-
<td class="parameter_description"><p>the value for the fourth component of <em class="parameter"><code>v</code></em>
|
2788
|
-
</p></td>
|
2789
|
-
<td class="parameter_annotations"> </td>
|
2790
|
-
</tr>
|
2791
|
-
</tbody>
|
2792
|
-
</table></div>
|
2793
|
-
</div>
|
2794
|
-
<div class="refsect3">
|
2795
|
-
<a name="graphene-vec4-init-from-vec3.returns"></a><h4>Returns</h4>
|
2796
|
-
<p> the initialized vector. </p>
|
2797
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2798
|
-
</div>
|
2799
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2800
|
-
</div>
|
2801
|
-
<hr>
|
2802
|
-
<div class="refsect2">
|
2803
|
-
<a name="graphene-vec4-init-from-vec2"></a><h3>graphene_vec4_init_from_vec2 ()</h3>
|
2804
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
2805
|
-
graphene_vec4_init_from_vec2 (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *v</code></em>,
|
2806
|
-
<em class="parameter"><code>const <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *src</code></em>,
|
2807
|
-
<em class="parameter"><code><span class="type">float</span> z</code></em>,
|
2808
|
-
<em class="parameter"><code><span class="type">float</span> w</code></em>);</pre>
|
2809
|
-
<p>Initializes a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> using the components of a
|
2810
|
-
<a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> and the values of <em class="parameter"><code>z</code></em>
|
2811
|
-
and <em class="parameter"><code>w</code></em>
|
2812
|
-
.</p>
|
2813
|
-
<div class="refsect3">
|
2814
|
-
<a name="graphene-vec4-init-from-vec2.parameters"></a><h4>Parameters</h4>
|
2815
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2816
|
-
<colgroup>
|
2817
|
-
<col width="150px" class="parameters_name">
|
2818
|
-
<col class="parameters_description">
|
2819
|
-
<col width="200px" class="parameters_annotations">
|
2820
|
-
</colgroup>
|
2821
|
-
<tbody>
|
2822
|
-
<tr>
|
2823
|
-
<td class="parameter_name"><p>v</p></td>
|
2824
|
-
<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></p></td>
|
2825
|
-
<td class="parameter_annotations"> </td>
|
2826
|
-
</tr>
|
2827
|
-
<tr>
|
2828
|
-
<td class="parameter_name"><p>src</p></td>
|
2829
|
-
<td class="parameter_description"><p>a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a></p></td>
|
2830
|
-
<td class="parameter_annotations"> </td>
|
2831
|
-
</tr>
|
2832
|
-
<tr>
|
2833
|
-
<td class="parameter_name"><p>z</p></td>
|
2834
|
-
<td class="parameter_description"><p>the value for the third component of <em class="parameter"><code>v</code></em>
|
2835
|
-
</p></td>
|
2836
|
-
<td class="parameter_annotations"> </td>
|
2837
|
-
</tr>
|
2838
|
-
<tr>
|
2839
|
-
<td class="parameter_name"><p>w</p></td>
|
2840
|
-
<td class="parameter_description"><p>the value for the fourth component of <em class="parameter"><code>v</code></em>
|
2841
|
-
</p></td>
|
2842
|
-
<td class="parameter_annotations"> </td>
|
2843
|
-
</tr>
|
2844
|
-
</tbody>
|
2845
|
-
</table></div>
|
2846
|
-
</div>
|
2847
|
-
<div class="refsect3">
|
2848
|
-
<a name="graphene-vec4-init-from-vec2.returns"></a><h4>Returns</h4>
|
2849
|
-
<p> the initialized vector. </p>
|
2850
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2851
|
-
</div>
|
2852
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2853
|
-
</div>
|
2854
|
-
<hr>
|
2855
|
-
<div class="refsect2">
|
2856
|
-
<a name="graphene-vec4-init-from-float"></a><h3>graphene_vec4_init_from_float ()</h3>
|
2857
|
-
<pre class="programlisting"><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
2858
|
-
graphene_vec4_init_from_float (<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *v</code></em>,
|
2859
|
-
<em class="parameter"><code>const <span class="type">float</span> *src</code></em>);</pre>
|
2860
|
-
<p>Initializes a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> with the values inside the given array.</p>
|
2861
|
-
<div class="refsect3">
|
2862
|
-
<a name="graphene-vec4-init-from-float.parameters"></a><h4>Parameters</h4>
|
2863
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2864
|
-
<colgroup>
|
2865
|
-
<col width="150px" class="parameters_name">
|
2866
|
-
<col class="parameters_description">
|
2867
|
-
<col width="200px" class="parameters_annotations">
|
2868
|
-
</colgroup>
|
2869
|
-
<tbody>
|
2870
|
-
<tr>
|
2871
|
-
<td class="parameter_name"><p>v</p></td>
|
2872
|
-
<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></p></td>
|
2873
|
-
<td class="parameter_annotations"> </td>
|
2874
|
-
</tr>
|
2875
|
-
<tr>
|
2876
|
-
<td class="parameter_name"><p>src</p></td>
|
2877
|
-
<td class="parameter_description"><p> an array of four floating point values. </p></td>
|
2878
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> fixed-size=4]</span></td>
|
2879
|
-
</tr>
|
2880
|
-
</tbody>
|
2881
|
-
</table></div>
|
2882
|
-
</div>
|
2883
|
-
<div class="refsect3">
|
2884
|
-
<a name="graphene-vec4-init-from-float.returns"></a><h4>Returns</h4>
|
2885
|
-
<p> the initialized vector. </p>
|
2886
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
2887
|
-
</div>
|
2888
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2889
|
-
</div>
|
2890
|
-
<hr>
|
2891
|
-
<div class="refsect2">
|
2892
|
-
<a name="graphene-vec4-to-float"></a><h3>graphene_vec4_to_float ()</h3>
|
2893
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2894
|
-
graphene_vec4_to_float (<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> *v</code></em>,
|
2895
|
-
<em class="parameter"><code><span class="type">float</span> *dest</code></em>);</pre>
|
2896
|
-
<p>Stores the components of the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> into an array
|
2897
|
-
of floating point values.</p>
|
2898
|
-
<div class="refsect3">
|
2899
|
-
<a name="graphene-vec4-to-float.parameters"></a><h4>Parameters</h4>
|
2900
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2901
|
-
<colgroup>
|
2902
|
-
<col width="150px" class="parameters_name">
|
2903
|
-
<col class="parameters_description">
|
2904
|
-
<col width="200px" class="parameters_annotations">
|
2905
|
-
</colgroup>
|
2906
|
-
<tbody>
|
2907
|
-
<tr>
|
2908
|
-
<td class="parameter_name"><p>v</p></td>
|
2909
|
-
<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></p></td>
|
2910
|
-
<td class="parameter_annotations"> </td>
|
2911
|
-
</tr>
|
2912
|
-
<tr>
|
2913
|
-
<td class="parameter_name"><p>dest</p></td>
|
2914
|
-
<td class="parameter_description"><p> return location for
|
2915
|
-
an array of floating point values. </p></td>
|
2916
|
-
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> fixed-size=4]</span></td>
|
2917
|
-
</tr>
|
2918
|
-
</tbody>
|
2919
|
-
</table></div>
|
2920
|
-
</div>
|
2921
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2922
|
-
</div>
|
2923
|
-
<hr>
|
2924
|
-
<div class="refsect2">
|
2925
|
-
<a name="graphene-vec4-add"></a><h3>graphene_vec4_add ()</h3>
|
2926
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2927
|
-
graphene_vec4_add (<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> *a</code></em>,
|
2928
|
-
<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> *b</code></em>,
|
2929
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
2930
|
-
<p>Adds each component of the two given vectors.</p>
|
2931
|
-
<div class="refsect3">
|
2932
|
-
<a name="graphene-vec4-add.parameters"></a><h4>Parameters</h4>
|
2933
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2934
|
-
<colgroup>
|
2935
|
-
<col width="150px" class="parameters_name">
|
2936
|
-
<col class="parameters_description">
|
2937
|
-
<col width="200px" class="parameters_annotations">
|
2938
|
-
</colgroup>
|
2939
|
-
<tbody>
|
2940
|
-
<tr>
|
2941
|
-
<td class="parameter_name"><p>a</p></td>
|
2942
|
-
<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></p></td>
|
2943
|
-
<td class="parameter_annotations"> </td>
|
2944
|
-
</tr>
|
2945
|
-
<tr>
|
2946
|
-
<td class="parameter_name"><p>b</p></td>
|
2947
|
-
<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></p></td>
|
2948
|
-
<td class="parameter_annotations"> </td>
|
2949
|
-
</tr>
|
2950
|
-
<tr>
|
2951
|
-
<td class="parameter_name"><p>res</p></td>
|
2952
|
-
<td class="parameter_description"><p> return location for the resulting vector. </p></td>
|
2953
|
-
<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>
|
2954
|
-
</tr>
|
2955
|
-
</tbody>
|
2956
|
-
</table></div>
|
2957
|
-
</div>
|
2958
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
2959
|
-
</div>
|
2960
|
-
<hr>
|
2961
|
-
<div class="refsect2">
|
2962
|
-
<a name="graphene-vec4-subtract"></a><h3>graphene_vec4_subtract ()</h3>
|
2963
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
2964
|
-
graphene_vec4_subtract (<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> *a</code></em>,
|
2965
|
-
<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> *b</code></em>,
|
2966
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
2967
|
-
<p>Subtracts from each component of the first operand <em class="parameter"><code>a</code></em>
|
2968
|
-
the
|
2969
|
-
corresponding component of the second operand <em class="parameter"><code>b</code></em>
|
2970
|
-
and places
|
2971
|
-
each result into the components of <em class="parameter"><code>res</code></em>
|
2972
|
-
.</p>
|
2973
|
-
<div class="refsect3">
|
2974
|
-
<a name="graphene-vec4-subtract.parameters"></a><h4>Parameters</h4>
|
2975
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
2976
|
-
<colgroup>
|
2977
|
-
<col width="150px" class="parameters_name">
|
2978
|
-
<col class="parameters_description">
|
2979
|
-
<col width="200px" class="parameters_annotations">
|
2980
|
-
</colgroup>
|
2981
|
-
<tbody>
|
2982
|
-
<tr>
|
2983
|
-
<td class="parameter_name"><p>a</p></td>
|
2984
|
-
<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></p></td>
|
2985
|
-
<td class="parameter_annotations"> </td>
|
2986
|
-
</tr>
|
2987
|
-
<tr>
|
2988
|
-
<td class="parameter_name"><p>b</p></td>
|
2989
|
-
<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></p></td>
|
2990
|
-
<td class="parameter_annotations"> </td>
|
2991
|
-
</tr>
|
2992
|
-
<tr>
|
2993
|
-
<td class="parameter_name"><p>res</p></td>
|
2994
|
-
<td class="parameter_description"><p> return location for the resulting vector. </p></td>
|
2995
|
-
<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>
|
2996
|
-
</tr>
|
2997
|
-
</tbody>
|
2998
|
-
</table></div>
|
2999
|
-
</div>
|
3000
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3001
|
-
</div>
|
3002
|
-
<hr>
|
3003
|
-
<div class="refsect2">
|
3004
|
-
<a name="graphene-vec4-multiply"></a><h3>graphene_vec4_multiply ()</h3>
|
3005
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
3006
|
-
graphene_vec4_multiply (<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> *a</code></em>,
|
3007
|
-
<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> *b</code></em>,
|
3008
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
3009
|
-
<p>Multiplies each component of the two given vectors.</p>
|
3010
|
-
<div class="refsect3">
|
3011
|
-
<a name="graphene-vec4-multiply.parameters"></a><h4>Parameters</h4>
|
3012
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3013
|
-
<colgroup>
|
3014
|
-
<col width="150px" class="parameters_name">
|
3015
|
-
<col class="parameters_description">
|
3016
|
-
<col width="200px" class="parameters_annotations">
|
3017
|
-
</colgroup>
|
3018
|
-
<tbody>
|
3019
|
-
<tr>
|
3020
|
-
<td class="parameter_name"><p>a</p></td>
|
3021
|
-
<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></p></td>
|
3022
|
-
<td class="parameter_annotations"> </td>
|
3023
|
-
</tr>
|
3024
|
-
<tr>
|
3025
|
-
<td class="parameter_name"><p>b</p></td>
|
3026
|
-
<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></p></td>
|
3027
|
-
<td class="parameter_annotations"> </td>
|
3028
|
-
</tr>
|
3029
|
-
<tr>
|
3030
|
-
<td class="parameter_name"><p>res</p></td>
|
3031
|
-
<td class="parameter_description"><p> return location for the resulting vector. </p></td>
|
3032
|
-
<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>
|
3033
|
-
</tr>
|
3034
|
-
</tbody>
|
3035
|
-
</table></div>
|
3036
|
-
</div>
|
3037
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3038
|
-
</div>
|
3039
|
-
<hr>
|
3040
|
-
<div class="refsect2">
|
3041
|
-
<a name="graphene-vec4-divide"></a><h3>graphene_vec4_divide ()</h3>
|
3042
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
3043
|
-
graphene_vec4_divide (<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> *a</code></em>,
|
3044
|
-
<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> *b</code></em>,
|
3045
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
3046
|
-
<p>Divides each component of the first operand <em class="parameter"><code>a</code></em>
|
3047
|
-
by the corresponding
|
3048
|
-
component of the second operand <em class="parameter"><code>b</code></em>
|
3049
|
-
, and places the results into the
|
3050
|
-
vector <em class="parameter"><code>res</code></em>
|
3051
|
-
.</p>
|
3052
|
-
<div class="refsect3">
|
3053
|
-
<a name="graphene-vec4-divide.parameters"></a><h4>Parameters</h4>
|
3054
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3055
|
-
<colgroup>
|
3056
|
-
<col width="150px" class="parameters_name">
|
3057
|
-
<col class="parameters_description">
|
3058
|
-
<col width="200px" class="parameters_annotations">
|
3059
|
-
</colgroup>
|
3060
|
-
<tbody>
|
3061
|
-
<tr>
|
3062
|
-
<td class="parameter_name"><p>a</p></td>
|
3063
|
-
<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></p></td>
|
3064
|
-
<td class="parameter_annotations"> </td>
|
3065
|
-
</tr>
|
3066
|
-
<tr>
|
3067
|
-
<td class="parameter_name"><p>b</p></td>
|
3068
|
-
<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></p></td>
|
3069
|
-
<td class="parameter_annotations"> </td>
|
3070
|
-
</tr>
|
3071
|
-
<tr>
|
3072
|
-
<td class="parameter_name"><p>res</p></td>
|
3073
|
-
<td class="parameter_description"><p> return location for the resulting vector. </p></td>
|
3074
|
-
<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>
|
3075
|
-
</tr>
|
3076
|
-
</tbody>
|
3077
|
-
</table></div>
|
3078
|
-
</div>
|
3079
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3080
|
-
</div>
|
3081
|
-
<hr>
|
3082
|
-
<div class="refsect2">
|
3083
|
-
<a name="graphene-vec4-dot"></a><h3>graphene_vec4_dot ()</h3>
|
3084
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
3085
|
-
graphene_vec4_dot (<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> *a</code></em>,
|
3086
|
-
<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> *b</code></em>);</pre>
|
3087
|
-
<p>Computes the dot product of the two given vectors.</p>
|
3088
|
-
<div class="refsect3">
|
3089
|
-
<a name="graphene-vec4-dot.parameters"></a><h4>Parameters</h4>
|
3090
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3091
|
-
<colgroup>
|
3092
|
-
<col width="150px" class="parameters_name">
|
3093
|
-
<col class="parameters_description">
|
3094
|
-
<col width="200px" class="parameters_annotations">
|
3095
|
-
</colgroup>
|
3096
|
-
<tbody>
|
3097
|
-
<tr>
|
3098
|
-
<td class="parameter_name"><p>a</p></td>
|
3099
|
-
<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></p></td>
|
3100
|
-
<td class="parameter_annotations"> </td>
|
3101
|
-
</tr>
|
3102
|
-
<tr>
|
3103
|
-
<td class="parameter_name"><p>b</p></td>
|
3104
|
-
<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></p></td>
|
3105
|
-
<td class="parameter_annotations"> </td>
|
3106
|
-
</tr>
|
3107
|
-
</tbody>
|
3108
|
-
</table></div>
|
3109
|
-
</div>
|
3110
|
-
<div class="refsect3">
|
3111
|
-
<a name="graphene-vec4-dot.returns"></a><h4>Returns</h4>
|
3112
|
-
<p> the value of the dot product</p>
|
3113
|
-
</div>
|
3114
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3115
|
-
</div>
|
3116
|
-
<hr>
|
3117
|
-
<div class="refsect2">
|
3118
|
-
<a name="graphene-vec4-scale"></a><h3>graphene_vec4_scale ()</h3>
|
3119
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
3120
|
-
graphene_vec4_scale (<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> *v</code></em>,
|
3121
|
-
<em class="parameter"><code><span class="type">float</span> factor</code></em>,
|
3122
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
3123
|
-
<p>Multiplies all components of the given vector with the given scalar <em class="parameter"><code>factor</code></em>
|
3124
|
-
.</p>
|
3125
|
-
<div class="refsect3">
|
3126
|
-
<a name="graphene-vec4-scale.parameters"></a><h4>Parameters</h4>
|
3127
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3128
|
-
<colgroup>
|
3129
|
-
<col width="150px" class="parameters_name">
|
3130
|
-
<col class="parameters_description">
|
3131
|
-
<col width="200px" class="parameters_annotations">
|
3132
|
-
</colgroup>
|
3133
|
-
<tbody>
|
3134
|
-
<tr>
|
3135
|
-
<td class="parameter_name"><p>v</p></td>
|
3136
|
-
<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></p></td>
|
3137
|
-
<td class="parameter_annotations"> </td>
|
3138
|
-
</tr>
|
3139
|
-
<tr>
|
3140
|
-
<td class="parameter_name"><p>factor</p></td>
|
3141
|
-
<td class="parameter_description"><p>the scalar factor</p></td>
|
3142
|
-
<td class="parameter_annotations"> </td>
|
3143
|
-
</tr>
|
3144
|
-
<tr>
|
3145
|
-
<td class="parameter_name"><p>res</p></td>
|
3146
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
3147
|
-
<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>
|
3148
|
-
</tr>
|
3149
|
-
</tbody>
|
3150
|
-
</table></div>
|
3151
|
-
</div>
|
3152
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
3153
|
-
</div>
|
3154
|
-
<hr>
|
3155
|
-
<div class="refsect2">
|
3156
|
-
<a name="graphene-vec4-length"></a><h3>graphene_vec4_length ()</h3>
|
3157
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
3158
|
-
graphene_vec4_length (<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> *v</code></em>);</pre>
|
3159
|
-
<p>Computes the length of the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3160
|
-
<div class="refsect3">
|
3161
|
-
<a name="graphene-vec4-length.parameters"></a><h4>Parameters</h4>
|
3162
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3163
|
-
<colgroup>
|
3164
|
-
<col width="150px" class="parameters_name">
|
3165
|
-
<col class="parameters_description">
|
3166
|
-
<col width="200px" class="parameters_annotations">
|
3167
|
-
</colgroup>
|
3168
|
-
<tbody><tr>
|
3169
|
-
<td class="parameter_name"><p>v</p></td>
|
3170
|
-
<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></p></td>
|
3171
|
-
<td class="parameter_annotations"> </td>
|
3172
|
-
</tr></tbody>
|
3173
|
-
</table></div>
|
3174
|
-
</div>
|
3175
|
-
<div class="refsect3">
|
3176
|
-
<a name="graphene-vec4-length.returns"></a><h4>Returns</h4>
|
3177
|
-
<p> the length of the vector</p>
|
3178
|
-
</div>
|
3179
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3180
|
-
</div>
|
3181
|
-
<hr>
|
3182
|
-
<div class="refsect2">
|
3183
|
-
<a name="graphene-vec4-normalize"></a><h3>graphene_vec4_normalize ()</h3>
|
3184
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
3185
|
-
graphene_vec4_normalize (<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> *v</code></em>,
|
3186
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
3187
|
-
<p>Normalizes the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3188
|
-
<div class="refsect3">
|
3189
|
-
<a name="graphene-vec4-normalize.parameters"></a><h4>Parameters</h4>
|
3190
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3191
|
-
<colgroup>
|
3192
|
-
<col width="150px" class="parameters_name">
|
3193
|
-
<col class="parameters_description">
|
3194
|
-
<col width="200px" class="parameters_annotations">
|
3195
|
-
</colgroup>
|
3196
|
-
<tbody>
|
3197
|
-
<tr>
|
3198
|
-
<td class="parameter_name"><p>v</p></td>
|
3199
|
-
<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></p></td>
|
3200
|
-
<td class="parameter_annotations"> </td>
|
3201
|
-
</tr>
|
3202
|
-
<tr>
|
3203
|
-
<td class="parameter_name"><p>res</p></td>
|
3204
|
-
<td class="parameter_description"><p> return location for the normalized
|
3205
|
-
vector. </p></td>
|
3206
|
-
<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>
|
3207
|
-
</tr>
|
3208
|
-
</tbody>
|
3209
|
-
</table></div>
|
3210
|
-
</div>
|
3211
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3212
|
-
</div>
|
3213
|
-
<hr>
|
3214
|
-
<div class="refsect2">
|
3215
|
-
<a name="graphene-vec4-negate"></a><h3>graphene_vec4_negate ()</h3>
|
3216
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
3217
|
-
graphene_vec4_negate (<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> *v</code></em>,
|
3218
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
3219
|
-
<p>Negates the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3220
|
-
<div class="refsect3">
|
3221
|
-
<a name="graphene-vec4-negate.parameters"></a><h4>Parameters</h4>
|
3222
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3223
|
-
<colgroup>
|
3224
|
-
<col width="150px" class="parameters_name">
|
3225
|
-
<col class="parameters_description">
|
3226
|
-
<col width="200px" class="parameters_annotations">
|
3227
|
-
</colgroup>
|
3228
|
-
<tbody>
|
3229
|
-
<tr>
|
3230
|
-
<td class="parameter_name"><p>v</p></td>
|
3231
|
-
<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></p></td>
|
3232
|
-
<td class="parameter_annotations"> </td>
|
3233
|
-
</tr>
|
3234
|
-
<tr>
|
3235
|
-
<td class="parameter_name"><p>res</p></td>
|
3236
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
3237
|
-
<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>
|
3238
|
-
</tr>
|
3239
|
-
</tbody>
|
3240
|
-
</table></div>
|
3241
|
-
</div>
|
3242
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
3243
|
-
</div>
|
3244
|
-
<hr>
|
3245
|
-
<div class="refsect2">
|
3246
|
-
<a name="graphene-vec4-equal"></a><h3>graphene_vec4_equal ()</h3>
|
3247
|
-
<pre class="programlisting"><span class="returnvalue">bool</span>
|
3248
|
-
graphene_vec4_equal (<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> *v1</code></em>,
|
3249
|
-
<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> *v2</code></em>);</pre>
|
3250
|
-
<p>Checks whether the two given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> are equal.</p>
|
3251
|
-
<div class="refsect3">
|
3252
|
-
<a name="graphene-vec4-equal.parameters"></a><h4>Parameters</h4>
|
3253
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3254
|
-
<colgroup>
|
3255
|
-
<col width="150px" class="parameters_name">
|
3256
|
-
<col class="parameters_description">
|
3257
|
-
<col width="200px" class="parameters_annotations">
|
3258
|
-
</colgroup>
|
3259
|
-
<tbody>
|
3260
|
-
<tr>
|
3261
|
-
<td class="parameter_name"><p>v1</p></td>
|
3262
|
-
<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></p></td>
|
3263
|
-
<td class="parameter_annotations"> </td>
|
3264
|
-
</tr>
|
3265
|
-
<tr>
|
3266
|
-
<td class="parameter_name"><p>v2</p></td>
|
3267
|
-
<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></p></td>
|
3268
|
-
<td class="parameter_annotations"> </td>
|
3269
|
-
</tr>
|
3270
|
-
</tbody>
|
3271
|
-
</table></div>
|
3272
|
-
</div>
|
3273
|
-
<div class="refsect3">
|
3274
|
-
<a name="graphene-vec4-equal.returns"></a><h4>Returns</h4>
|
3275
|
-
<p> <code class="literal">true</code> if the two vectors are equal, and false otherwise</p>
|
3276
|
-
</div>
|
3277
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
3278
|
-
</div>
|
3279
|
-
<hr>
|
3280
|
-
<div class="refsect2">
|
3281
|
-
<a name="graphene-vec4-near"></a><h3>graphene_vec4_near ()</h3>
|
3282
|
-
<pre class="programlisting"><span class="returnvalue">bool</span>
|
3283
|
-
graphene_vec4_near (<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> *v1</code></em>,
|
3284
|
-
<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> *v2</code></em>,
|
3285
|
-
<em class="parameter"><code><span class="type">float</span> epsilon</code></em>);</pre>
|
3286
|
-
<p>Compares the two given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> vectors and checks
|
3287
|
-
whether their values are within the given <em class="parameter"><code>epsilon</code></em>
|
3288
|
-
.</p>
|
3289
|
-
<div class="refsect3">
|
3290
|
-
<a name="graphene-vec4-near.parameters"></a><h4>Parameters</h4>
|
3291
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3292
|
-
<colgroup>
|
3293
|
-
<col width="150px" class="parameters_name">
|
3294
|
-
<col class="parameters_description">
|
3295
|
-
<col width="200px" class="parameters_annotations">
|
3296
|
-
</colgroup>
|
3297
|
-
<tbody>
|
3298
|
-
<tr>
|
3299
|
-
<td class="parameter_name"><p>v1</p></td>
|
3300
|
-
<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></p></td>
|
3301
|
-
<td class="parameter_annotations"> </td>
|
3302
|
-
</tr>
|
3303
|
-
<tr>
|
3304
|
-
<td class="parameter_name"><p>v2</p></td>
|
3305
|
-
<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></p></td>
|
3306
|
-
<td class="parameter_annotations"> </td>
|
3307
|
-
</tr>
|
3308
|
-
<tr>
|
3309
|
-
<td class="parameter_name"><p>epsilon</p></td>
|
3310
|
-
<td class="parameter_description"><p>the threshold between the two vectors</p></td>
|
3311
|
-
<td class="parameter_annotations"> </td>
|
3312
|
-
</tr>
|
3313
|
-
</tbody>
|
3314
|
-
</table></div>
|
3315
|
-
</div>
|
3316
|
-
<div class="refsect3">
|
3317
|
-
<a name="graphene-vec4-near.returns"></a><h4>Returns</h4>
|
3318
|
-
<p> <code class="literal">true</code> if the two vectors are near each other</p>
|
3319
|
-
</div>
|
3320
|
-
<p class="since">Since: <a class="link" href="ix04.html#api-index-1.2">1.2</a></p>
|
3321
|
-
</div>
|
3322
|
-
<hr>
|
3323
|
-
<div class="refsect2">
|
3324
|
-
<a name="graphene-vec4-min"></a><h3>graphene_vec4_min ()</h3>
|
3325
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
3326
|
-
graphene_vec4_min (<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> *a</code></em>,
|
3327
|
-
<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> *b</code></em>,
|
3328
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
3329
|
-
<p>Compares each component of the two given vectors and creates a
|
3330
|
-
vector that contains the minimum values.</p>
|
3331
|
-
<div class="refsect3">
|
3332
|
-
<a name="graphene-vec4-min.parameters"></a><h4>Parameters</h4>
|
3333
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3334
|
-
<colgroup>
|
3335
|
-
<col width="150px" class="parameters_name">
|
3336
|
-
<col class="parameters_description">
|
3337
|
-
<col width="200px" class="parameters_annotations">
|
3338
|
-
</colgroup>
|
3339
|
-
<tbody>
|
3340
|
-
<tr>
|
3341
|
-
<td class="parameter_name"><p>a</p></td>
|
3342
|
-
<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></p></td>
|
3343
|
-
<td class="parameter_annotations"> </td>
|
3344
|
-
</tr>
|
3345
|
-
<tr>
|
3346
|
-
<td class="parameter_name"><p>b</p></td>
|
3347
|
-
<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></p></td>
|
3348
|
-
<td class="parameter_annotations"> </td>
|
3349
|
-
</tr>
|
3350
|
-
<tr>
|
3351
|
-
<td class="parameter_name"><p>res</p></td>
|
3352
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
3353
|
-
<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>
|
3354
|
-
</tr>
|
3355
|
-
</tbody>
|
3356
|
-
</table></div>
|
3357
|
-
</div>
|
3358
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3359
|
-
</div>
|
3360
|
-
<hr>
|
3361
|
-
<div class="refsect2">
|
3362
|
-
<a name="graphene-vec4-max"></a><h3>graphene_vec4_max ()</h3>
|
3363
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
3364
|
-
graphene_vec4_max (<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> *a</code></em>,
|
3365
|
-
<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> *b</code></em>,
|
3366
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> *res</code></em>);</pre>
|
3367
|
-
<p>Compares each component of the two given vectors and creates a
|
3368
|
-
vector that contains the maximum values.</p>
|
3369
|
-
<div class="refsect3">
|
3370
|
-
<a name="graphene-vec4-max.parameters"></a><h4>Parameters</h4>
|
3371
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3372
|
-
<colgroup>
|
3373
|
-
<col width="150px" class="parameters_name">
|
3374
|
-
<col class="parameters_description">
|
3375
|
-
<col width="200px" class="parameters_annotations">
|
3376
|
-
</colgroup>
|
3377
|
-
<tbody>
|
3378
|
-
<tr>
|
3379
|
-
<td class="parameter_name"><p>a</p></td>
|
3380
|
-
<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></p></td>
|
3381
|
-
<td class="parameter_annotations"> </td>
|
3382
|
-
</tr>
|
3383
|
-
<tr>
|
3384
|
-
<td class="parameter_name"><p>b</p></td>
|
3385
|
-
<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></p></td>
|
3386
|
-
<td class="parameter_annotations"> </td>
|
3387
|
-
</tr>
|
3388
|
-
<tr>
|
3389
|
-
<td class="parameter_name"><p>res</p></td>
|
3390
|
-
<td class="parameter_description"><p> return location for the result vector. </p></td>
|
3391
|
-
<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>
|
3392
|
-
</tr>
|
3393
|
-
</tbody>
|
3394
|
-
</table></div>
|
3395
|
-
</div>
|
3396
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3397
|
-
</div>
|
3398
|
-
<hr>
|
3399
|
-
<div class="refsect2">
|
3400
|
-
<a name="graphene-vec4-get-x"></a><h3>graphene_vec4_get_x ()</h3>
|
3401
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
3402
|
-
graphene_vec4_get_x (<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> *v</code></em>);</pre>
|
3403
|
-
<p>Retrieves the value of the first component of the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3404
|
-
<div class="refsect3">
|
3405
|
-
<a name="graphene-vec4-get-x.parameters"></a><h4>Parameters</h4>
|
3406
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3407
|
-
<colgroup>
|
3408
|
-
<col width="150px" class="parameters_name">
|
3409
|
-
<col class="parameters_description">
|
3410
|
-
<col width="200px" class="parameters_annotations">
|
3411
|
-
</colgroup>
|
3412
|
-
<tbody><tr>
|
3413
|
-
<td class="parameter_name"><p>v</p></td>
|
3414
|
-
<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></p></td>
|
3415
|
-
<td class="parameter_annotations"> </td>
|
3416
|
-
</tr></tbody>
|
3417
|
-
</table></div>
|
3418
|
-
</div>
|
3419
|
-
<div class="refsect3">
|
3420
|
-
<a name="graphene-vec4-get-x.returns"></a><h4>Returns</h4>
|
3421
|
-
<p> the value of the first component</p>
|
3422
|
-
</div>
|
3423
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3424
|
-
</div>
|
3425
|
-
<hr>
|
3426
|
-
<div class="refsect2">
|
3427
|
-
<a name="graphene-vec4-get-y"></a><h3>graphene_vec4_get_y ()</h3>
|
3428
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
3429
|
-
graphene_vec4_get_y (<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> *v</code></em>);</pre>
|
3430
|
-
<p>Retrieves the value of the second component of the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3431
|
-
<div class="refsect3">
|
3432
|
-
<a name="graphene-vec4-get-y.parameters"></a><h4>Parameters</h4>
|
3433
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3434
|
-
<colgroup>
|
3435
|
-
<col width="150px" class="parameters_name">
|
3436
|
-
<col class="parameters_description">
|
3437
|
-
<col width="200px" class="parameters_annotations">
|
3438
|
-
</colgroup>
|
3439
|
-
<tbody><tr>
|
3440
|
-
<td class="parameter_name"><p>v</p></td>
|
3441
|
-
<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></p></td>
|
3442
|
-
<td class="parameter_annotations"> </td>
|
3443
|
-
</tr></tbody>
|
3444
|
-
</table></div>
|
3445
|
-
</div>
|
3446
|
-
<div class="refsect3">
|
3447
|
-
<a name="graphene-vec4-get-y.returns"></a><h4>Returns</h4>
|
3448
|
-
<p> the value of the second component</p>
|
3449
|
-
</div>
|
3450
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3451
|
-
</div>
|
3452
|
-
<hr>
|
3453
|
-
<div class="refsect2">
|
3454
|
-
<a name="graphene-vec4-get-z"></a><h3>graphene_vec4_get_z ()</h3>
|
3455
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
3456
|
-
graphene_vec4_get_z (<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> *v</code></em>);</pre>
|
3457
|
-
<p>Retrieves the value of the third component of the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3458
|
-
<div class="refsect3">
|
3459
|
-
<a name="graphene-vec4-get-z.parameters"></a><h4>Parameters</h4>
|
3460
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3461
|
-
<colgroup>
|
3462
|
-
<col width="150px" class="parameters_name">
|
3463
|
-
<col class="parameters_description">
|
3464
|
-
<col width="200px" class="parameters_annotations">
|
3465
|
-
</colgroup>
|
3466
|
-
<tbody><tr>
|
3467
|
-
<td class="parameter_name"><p>v</p></td>
|
3468
|
-
<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></p></td>
|
3469
|
-
<td class="parameter_annotations"> </td>
|
3470
|
-
</tr></tbody>
|
3471
|
-
</table></div>
|
3472
|
-
</div>
|
3473
|
-
<div class="refsect3">
|
3474
|
-
<a name="graphene-vec4-get-z.returns"></a><h4>Returns</h4>
|
3475
|
-
<p> the value of the third component</p>
|
3476
|
-
</div>
|
3477
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3478
|
-
</div>
|
3479
|
-
<hr>
|
3480
|
-
<div class="refsect2">
|
3481
|
-
<a name="graphene-vec4-get-w"></a><h3>graphene_vec4_get_w ()</h3>
|
3482
|
-
<pre class="programlisting"><span class="returnvalue">float</span>
|
3483
|
-
graphene_vec4_get_w (<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> *v</code></em>);</pre>
|
3484
|
-
<p>Retrieves the value of the fourth component of the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3485
|
-
<div class="refsect3">
|
3486
|
-
<a name="graphene-vec4-get-w.parameters"></a><h4>Parameters</h4>
|
3487
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3488
|
-
<colgroup>
|
3489
|
-
<col width="150px" class="parameters_name">
|
3490
|
-
<col class="parameters_description">
|
3491
|
-
<col width="200px" class="parameters_annotations">
|
3492
|
-
</colgroup>
|
3493
|
-
<tbody><tr>
|
3494
|
-
<td class="parameter_name"><p>v</p></td>
|
3495
|
-
<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></p></td>
|
3496
|
-
<td class="parameter_annotations"> </td>
|
3497
|
-
</tr></tbody>
|
3498
|
-
</table></div>
|
3499
|
-
</div>
|
3500
|
-
<div class="refsect3">
|
3501
|
-
<a name="graphene-vec4-get-w.returns"></a><h4>Returns</h4>
|
3502
|
-
<p> the value of the fourth component</p>
|
3503
|
-
</div>
|
3504
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3505
|
-
</div>
|
3506
|
-
<hr>
|
3507
|
-
<div class="refsect2">
|
3508
|
-
<a name="graphene-vec4-get-xy"></a><h3>graphene_vec4_get_xy ()</h3>
|
3509
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
3510
|
-
graphene_vec4_get_xy (<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> *v</code></em>,
|
3511
|
-
<em class="parameter"><code><a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> *res</code></em>);</pre>
|
3512
|
-
<p>Creates a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> that contains the first two components
|
3513
|
-
of the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3514
|
-
<div class="refsect3">
|
3515
|
-
<a name="graphene-vec4-get-xy.parameters"></a><h4>Parameters</h4>
|
3516
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3517
|
-
<colgroup>
|
3518
|
-
<col width="150px" class="parameters_name">
|
3519
|
-
<col class="parameters_description">
|
3520
|
-
<col width="200px" class="parameters_annotations">
|
3521
|
-
</colgroup>
|
3522
|
-
<tbody>
|
3523
|
-
<tr>
|
3524
|
-
<td class="parameter_name"><p>v</p></td>
|
3525
|
-
<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></p></td>
|
3526
|
-
<td class="parameter_annotations"> </td>
|
3527
|
-
</tr>
|
3528
|
-
<tr>
|
3529
|
-
<td class="parameter_name"><p>res</p></td>
|
3530
|
-
<td class="parameter_description"><p> return location for a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>. </p></td>
|
3531
|
-
<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>
|
3532
|
-
</tr>
|
3533
|
-
</tbody>
|
3534
|
-
</table></div>
|
3535
|
-
</div>
|
3536
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3537
|
-
</div>
|
3538
|
-
<hr>
|
3539
|
-
<div class="refsect2">
|
3540
|
-
<a name="graphene-vec4-get-xyz"></a><h3>graphene_vec4_get_xyz ()</h3>
|
3541
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
3542
|
-
graphene_vec4_get_xyz (<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> *v</code></em>,
|
3543
|
-
<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> *res</code></em>);</pre>
|
3544
|
-
<p>Creates a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> that contains the first three components
|
3545
|
-
of the given <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3546
|
-
<div class="refsect3">
|
3547
|
-
<a name="graphene-vec4-get-xyz.parameters"></a><h4>Parameters</h4>
|
3548
|
-
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
3549
|
-
<colgroup>
|
3550
|
-
<col width="150px" class="parameters_name">
|
3551
|
-
<col class="parameters_description">
|
3552
|
-
<col width="200px" class="parameters_annotations">
|
3553
|
-
</colgroup>
|
3554
|
-
<tbody>
|
3555
|
-
<tr>
|
3556
|
-
<td class="parameter_name"><p>v</p></td>
|
3557
|
-
<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></p></td>
|
3558
|
-
<td class="parameter_annotations"> </td>
|
3559
|
-
</tr>
|
3560
|
-
<tr>
|
3561
|
-
<td class="parameter_name"><p>res</p></td>
|
3562
|
-
<td class="parameter_description"><p> return location for a graphene_vec3_t. </p></td>
|
3563
|
-
<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>
|
3564
|
-
</tr>
|
3565
|
-
</tbody>
|
3566
|
-
</table></div>
|
3567
|
-
</div>
|
3568
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3569
|
-
</div>
|
3570
|
-
<hr>
|
3571
|
-
<div class="refsect2">
|
3572
|
-
<a name="graphene-vec4-zero"></a><h3>graphene_vec4_zero ()</h3>
|
3573
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
3574
|
-
graphene_vec4_zero (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
3575
|
-
<p>Retrieves a pointer to a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> with all its
|
3576
|
-
components set to 0.</p>
|
3577
|
-
<div class="refsect3">
|
3578
|
-
<a name="graphene-vec4-zero.returns"></a><h4>Returns</h4>
|
3579
|
-
<p> a constant vector. </p>
|
3580
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
3581
|
-
</div>
|
3582
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3583
|
-
</div>
|
3584
|
-
<hr>
|
3585
|
-
<div class="refsect2">
|
3586
|
-
<a name="graphene-vec4-one"></a><h3>graphene_vec4_one ()</h3>
|
3587
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
3588
|
-
graphene_vec4_one (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
3589
|
-
<p>Retrieves a pointer to a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> with all its
|
3590
|
-
components set to 1.</p>
|
3591
|
-
<div class="refsect3">
|
3592
|
-
<a name="graphene-vec4-one.returns"></a><h4>Returns</h4>
|
3593
|
-
<p> a constant vector. </p>
|
3594
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
3595
|
-
</div>
|
3596
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3597
|
-
</div>
|
3598
|
-
<hr>
|
3599
|
-
<div class="refsect2">
|
3600
|
-
<a name="graphene-vec4-x-axis"></a><h3>graphene_vec4_x_axis ()</h3>
|
3601
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
3602
|
-
graphene_vec4_x_axis (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
3603
|
-
<p>Retrieves a pointer to a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> with its
|
3604
|
-
components set to (1, 0, 0, 0).</p>
|
3605
|
-
<div class="refsect3">
|
3606
|
-
<a name="graphene-vec4-x-axis.returns"></a><h4>Returns</h4>
|
3607
|
-
<p> a constant vector. </p>
|
3608
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
3609
|
-
</div>
|
3610
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3611
|
-
</div>
|
3612
|
-
<hr>
|
3613
|
-
<div class="refsect2">
|
3614
|
-
<a name="graphene-vec4-y-axis"></a><h3>graphene_vec4_y_axis ()</h3>
|
3615
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
3616
|
-
graphene_vec4_y_axis (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
3617
|
-
<p>Retrieves a pointer to a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> with its
|
3618
|
-
components set to (0, 1, 0, 0).</p>
|
3619
|
-
<div class="refsect3">
|
3620
|
-
<a name="graphene-vec4-y-axis.returns"></a><h4>Returns</h4>
|
3621
|
-
<p> a constant vector. </p>
|
3622
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
3623
|
-
</div>
|
3624
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3625
|
-
</div>
|
3626
|
-
<hr>
|
3627
|
-
<div class="refsect2">
|
3628
|
-
<a name="graphene-vec4-z-axis"></a><h3>graphene_vec4_z_axis ()</h3>
|
3629
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
3630
|
-
graphene_vec4_z_axis (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
3631
|
-
<p>Retrieves a pointer to a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> with its
|
3632
|
-
components set to (0, 0, 1, 0).</p>
|
3633
|
-
<div class="refsect3">
|
3634
|
-
<a name="graphene-vec4-z-axis.returns"></a><h4>Returns</h4>
|
3635
|
-
<p> a constant vector. </p>
|
3636
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
3637
|
-
</div>
|
3638
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3639
|
-
</div>
|
3640
|
-
<hr>
|
3641
|
-
<div class="refsect2">
|
3642
|
-
<a name="graphene-vec4-w-axis"></a><h3>graphene_vec4_w_axis ()</h3>
|
3643
|
-
<pre class="programlisting">const <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="returnvalue">graphene_vec4_t</span></a> *
|
3644
|
-
graphene_vec4_w_axis (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
3645
|
-
<p>Retrieves a pointer to a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> with its
|
3646
|
-
components set to (0, 0, 0, 1).</p>
|
3647
|
-
<div class="refsect3">
|
3648
|
-
<a name="graphene-vec4-w-axis.returns"></a><h4>Returns</h4>
|
3649
|
-
<p> a constant vector. </p>
|
3650
|
-
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
3651
|
-
</div>
|
3652
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3653
|
-
</div>
|
3654
|
-
</div>
|
3655
|
-
<div class="refsect1">
|
3656
|
-
<a name="graphene-Vectors.other_details"></a><h2>Types and Values</h2>
|
3657
|
-
<div class="refsect2">
|
3658
|
-
<a name="GRAPHENE-VEC2-LEN:CAPS"></a><h3>GRAPHENE_VEC2_LEN</h3>
|
3659
|
-
<pre class="programlisting">#define GRAPHENE_VEC2_LEN 2
|
3660
|
-
</pre>
|
3661
|
-
<p>Evaluates to the number of components of a <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a>.</p>
|
3662
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3663
|
-
</div>
|
3664
|
-
<hr>
|
3665
|
-
<div class="refsect2">
|
3666
|
-
<a name="graphene-vec2-t"></a><h3>graphene_vec2_t</h3>
|
3667
|
-
<pre class="programlisting">typedef struct {
|
3668
|
-
} graphene_vec2_t;
|
3669
|
-
</pre>
|
3670
|
-
<p>A structure capable of holding a vector with two dimensions, x and y.</p>
|
3671
|
-
<p>The contents of the <a class="link" href="graphene-Vectors.html#graphene-vec2-t" title="graphene_vec2_t"><span class="type">graphene_vec2_t</span></a> structure are private and should
|
3672
|
-
never be accessed directly.</p>
|
3673
|
-
</div>
|
3674
|
-
<hr>
|
3675
|
-
<div class="refsect2">
|
3676
|
-
<a name="GRAPHENE-VEC3-LEN:CAPS"></a><h3>GRAPHENE_VEC3_LEN</h3>
|
3677
|
-
<pre class="programlisting">#define GRAPHENE_VEC3_LEN 3
|
3678
|
-
</pre>
|
3679
|
-
<p>Evaluates to the number of components of a <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a>.</p>
|
3680
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3681
|
-
</div>
|
3682
|
-
<hr>
|
3683
|
-
<div class="refsect2">
|
3684
|
-
<a name="graphene-vec3-t"></a><h3>graphene_vec3_t</h3>
|
3685
|
-
<pre class="programlisting">typedef struct {
|
3686
|
-
} graphene_vec3_t;
|
3687
|
-
</pre>
|
3688
|
-
<p>A structure capable of holding a vector with three dimensions: x, y, and z.</p>
|
3689
|
-
<p>The contents of the <a class="link" href="graphene-Vectors.html#graphene-vec3-t" title="graphene_vec3_t"><span class="type">graphene_vec3_t</span></a> structure are private and should
|
3690
|
-
never be accessed directly.</p>
|
3691
|
-
</div>
|
3692
|
-
<hr>
|
3693
|
-
<div class="refsect2">
|
3694
|
-
<a name="GRAPHENE-VEC4-LEN:CAPS"></a><h3>GRAPHENE_VEC4_LEN</h3>
|
3695
|
-
<pre class="programlisting">#define GRAPHENE_VEC4_LEN 4
|
3696
|
-
</pre>
|
3697
|
-
<p>Evaluates to the number of components of a <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a>.</p>
|
3698
|
-
<p class="since">Since: <a class="link" href="ix03.html#api-index-1.0">1.0</a></p>
|
3699
|
-
</div>
|
3700
|
-
<hr>
|
3701
|
-
<div class="refsect2">
|
3702
|
-
<a name="graphene-vec4-t"></a><h3>graphene_vec4_t</h3>
|
3703
|
-
<pre class="programlisting">typedef struct {
|
3704
|
-
} graphene_vec4_t;
|
3705
|
-
</pre>
|
3706
|
-
<p>A structure capable of holding a vector with four dimensions: x, y, z, and w.</p>
|
3707
|
-
<p>The contents of the <a class="link" href="graphene-Vectors.html#graphene-vec4-t" title="graphene_vec4_t"><span class="type">graphene_vec4_t</span></a> structure are private and should
|
3708
|
-
never be accessed directly.</p>
|
3709
|
-
</div>
|
3710
|
-
</div>
|
3711
|
-
</div>
|
3712
|
-
<div class="footer">
|
3713
|
-
<hr>Generated by GTK-Doc V1.25</div>
|
3714
|
-
</body>
|
3715
|
-
</html>
|