mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2026-01-03 18:22:27 +00:00
Updated Docs
This commit is contained in:
@@ -1,25 +1,11 @@
|
||||
/*
|
||||
HandmadeMath.h v1.11.0
|
||||
HandmadeMath.h v1.13.0
|
||||
|
||||
This is a single header file with a bunch of useful functions for game and
|
||||
graphics math operations.
|
||||
|
||||
=============================================================================
|
||||
|
||||
You MUST
|
||||
|
||||
#define HANDMADE_MATH_IMPLEMENTATION
|
||||
|
||||
in EXACTLY one C or C++ file that includes this header, BEFORE the
|
||||
include, like this:
|
||||
|
||||
#define HANDMADE_MATH_IMPLEMENTATION
|
||||
#include "HandmadeMath.h"
|
||||
|
||||
All other files should just #include "HandmadeMath.h" without the #define.
|
||||
|
||||
=============================================================================
|
||||
|
||||
To disable SSE intrinsics, you MUST
|
||||
|
||||
#define HANDMADE_MATH_NO_SSE
|
||||
@@ -27,7 +13,6 @@
|
||||
in EXACTLY one C or C++ file that includes this header, BEFORE the
|
||||
include, like this:
|
||||
|
||||
#define HANDMADE_MATH_IMPLEMENTATION
|
||||
#define HANDMADE_MATH_NO_SSE
|
||||
#include "HandmadeMath.h"
|
||||
|
||||
@@ -68,7 +53,6 @@
|
||||
#define HMM_ACOSF MyACosF
|
||||
#define HMM_ATANF MyATanF
|
||||
#define HMM_ATAN2F MyATan2F
|
||||
#define HANDMADE_MATH_IMPLEMENTATION
|
||||
#include "HandmadeMath.h"
|
||||
|
||||
If you do not define all of these, HandmadeMath.h will use the
|
||||
|
||||
@@ -10,7 +10,8 @@ To get started, go download [the latest release](https://github.com/HandmadeMath
|
||||
|
||||
Version | Changes |
|
||||
----------------|----------------|
|
||||
**1.12.0** | Added Unary Minus operator for `HMM_Vec2`, `HMM_Vec3`, and `HMM_Vec4`. |
|
||||
|
||||
**1.13.0** | Inline all Handmade Math functions. Remove need for HANDMADE_MATH_IMPLEMENTATION |
|
||||
**1.11.1** | Added HMM_PREFIX macro to a few functions that were missing it. |
|
||||
**1.11.0** | Added ability to customize or remove the default `HMM_` prefix on function names by defining a macro called `HMM_PREFIX(name)`. |
|
||||
**1.10.1** | Removed stdint.h, this doesn't exist on some really old compilers and we didn't really use it anyways. |
|
||||
|
||||
Reference in New Issue
Block a user