• Stars
    star
    268
  • Rank 153,144 (Top 4 %)
  • Language
    C++
  • License
    Other
  • Created almost 8 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Modified version of Sony's open sourced vector and matrix math library.

Vectormath

Modified version of Sony's open sourced header-only vector and matrix math library. I've uploaded a copy here so it can be easily submoduled on other projects.

The main differences from the original library released by Sony:

  • Removed deprecated SPU/PPU implementations that only targeted PS3/PowerPC.
  • Removed the C interfaces - the C++ interface is much nicer to use with operator overloads, return by val, etc.
  • Massive namespace cleanup. Removed or replaced most macros with functions and constants.
  • Better compliance with strict aliasing rules.
  • Added portable macros for alignment annotations to remove some #ifdefs.
  • Internal SSE helper code moved to a separate header - other files also renamed.
  • Removed the Aos/Soa sub-namespaces, since the Soa implementations were only available for SPU.
  • The library now includes only the generic scalar version and the x86/64 SSE intrinsics version.
  • Added an unpadded Vector2 and Point2 to also support basic 2D vector maths. These are always scalar mode (size = 2 floats).
  • All you need to do is include the public header file vectormath.hpp. It will expose the relevant parts of the library for you and try to select the SSE implementation if supported.

Original copyright notice:

 Vector Math library for 3-D linear algebra (vector, matrix, quaternion)
   SIMD support for SSE. Also includes generic multi-platform scalar version.

   Copyright (C) 2006, 2007 Sony Computer Entertainment Inc.
   All rights reserved.

   Redistribution and use in source and binary forms,
   with or without modification, are permitted provided that the
   following conditions are met:
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.
    * Neither the name of the Sony Computer Entertainment Inc nor the names
      of its contributors may be used to endorse or promote products derived
      from this software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.

More Repositories

1

debug-draw

Immediate-mode, renderer agnostic, lightweight debug drawing API.
C++
504
star
2

compression-algorithms

C++ implementations of common data compression algorithms.
C++
110
star
3

reverse-engineering-dungeon-siege

An attempt to reverse engineer game assets of GPG's Dungeon Siege.
C++
58
star
4

quake2-for-ps2

An attempt at a homebrew port of id's Quake 2 for the PlayStation 2 Console.
C
44
star
5

moon-lang

Custom scripting language Compiler and VM written in C++11.
C++
34
star
6

hash_index

Fast hash table template for array indexes.
C++
27
star
7

War3HD

A custom renderer for Warcraft 3 via DLL redirection.
C++
16
star
8

reverse-engineering-darkstone

Simple tools to reverse engineer file formats of the Darkstone game.
C
15
star
9

GLProxy

Single source file OpenGL proxy/interceptor skeleton.
C++
14
star
10

vclpp

Minimal preprocessor for the PS2 Vector Command Line (VCL) tool.
C++
13
star
11

gl-core-samples

Core OpenGL samples and tests written in C++11.
C++
12
star
12

reverse-engineering-outlaws

An attempt to reverse engineer custom file formats used by the game Outlaws from LucasArts.
C++
12
star
13

parse-utils

C++ utilities for lexing and parsing of script languages and configuration files.
C++
11
star
14

ps2-homebrew

PlayStation 2 homebrew demos.
C
10
star
15

obj2c

Simple command line tool to convert Wavefront OBJ models to C/C++ data arrays.
C++
9
star
16

MrQuake2

Quake 2 custom renderers playground.
C
7
star
17

lib-cfg

A small C++11 library for configuration file handling, CVars and Commands.
C++
7
star
18

angles

Strongly-typed angle classes for radians and degrees.
C++
6
star
19

array_view

Implementation of array_view<T> and strided_array_view<T>, inspired by span<T> from GSL.
C++
6
star
20

font-tool

Command line tool that converts FNT files and font bitmaps to C/C++ code.
C++
6
star
21

portable-pedump

A simple command line tool to dump textual information about Microsoft's Portable Executables (PEs).
C++
5
star
22

neo-tweak-bar

Tiny renderer-agnostic C++ GUI library inspired by AntTweakBar.
C++
5
star
23

enum_helpers

C++ enum/enum-class iterator helper and enum-sized C-style array wrapper.
C++
4
star
24

rust-citysim

Tiny city building game written in the Rust language.
Rust
2
star
25

glampert.github.io

My personal website and blog.
JavaScript
1
star
26

istrings

Custom replacement for the Unix 'strings' utility.
C++
1
star