Home

Resume

Blog

Teikitu


/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
/*  »Project«   Teikitu Gaming System (TgS) (∂)
    »File«      TgS Common - Math [Constants].h
    »Author«    Andrew Aye (EMail: mailto:andrew.aye@gmail.com, Web: http://www.andrewaye.com)
    »Version«   4.51 / »GUID« A9981407-3EC9-42AF-8B6F-8BE6DD919615                                                                                                        */
/*   -------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/*  Copyright: © 2002-2017, Andrew Aye.  All Rights Reserved.
    This software is free for non-commercial use.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
      following conditions are met:
        Redistribution of source code must retain this copyright notice, this list of conditions and the following disclaimers.
        Redistribution in binary form must reproduce this copyright notice, this list of conditions and the following disclaimers in the documentation and other materials
          provided with the distribution.
    The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
    The intellectual property rights of the algorithms used reside with Andrew Aye.
    You may not use this software, in whole or in part, in support of any commercial product without the express written consent of the author.
    There is no warranty or other guarantee of fitness of this software for any purpose. It is provided solely "as is".                                                   */
/* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
#if !defined(TGS_COMMON_MATH_CONSTANTS_H)
#define TGS_COMMON_MATH_CONSTANTS_H
#pragma once


/* == Common ============================================================================================================================================================ */

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
/*  Public Constants                                                                                                                                                      */
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */

TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_PI_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_TWO_PI_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_HALF_PI_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_INVPI_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_SQRT2_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_SQRT3_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_SQRT5_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_THIRD_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_TWENTYSEVENTH_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_SQRT1_2_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_DEG_TO_RAD_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_RAD_TO_DEG_F32;
TgEXTN TgALIGN(16) C_TgFLOAT32              KTgF_GOLDEN_RATIO_F32;

TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_PI_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_TWO_PI_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_HALF_PI_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_INVPI_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_SQRT2_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_SQRT3_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_SQRT5_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_THIRD_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_TWENTYSEVENTH_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_SQRT1_2_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_DEG_TO_RAD_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_RAD_TO_DEG_F64;
TgEXTN TgALIGN(16) C_TgFLOAT64              KTgF_GOLDEN_RATIO_F64;

TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_FFFF;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_FFF0;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_FF0F;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_FF00;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_F0FF;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_F0F0;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_F00F;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_F000;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_0FFF;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_0FF0;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_0F0F;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_0F00;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_00FF;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_00F0;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_000F;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_0000;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_NaN;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_SgnM;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_INF;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_PNNP;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_YZXW;
TgEXTN TgALIGN(16) C_TgVECTOR_ALIAS_UNION   KTgV_ZXYW;

TgEXTN TgALIGN(16) C_TgVEC_F32_03           KTgV_ZERO_F32_03;
TgEXTN TgALIGN(16) C_TgVEC_F32_03           KTgV_ONE_F32_03;
TgEXTN TgALIGN(16) C_TgVEC_F32_03           KTgV_UNIT_X_F32_03;
TgEXTN TgALIGN(16) C_TgVEC_F32_03           KTgV_UNIT_Y_F32_03;
TgEXTN TgALIGN(16) C_TgVEC_F32_03           KTgV_UNIT_Z_F32_03;

TgEXTN TgALIGN(16) C_TgVEC_F32_04           KTgV_ZERO_F32_04;
TgEXTN TgALIGN(16) C_TgVEC_F32_04           KTgV_ONE_F32_04;
TgEXTN TgALIGN(16) C_TgVEC_F32_04           KTgV_UNIT_X_F32_04;
TgEXTN TgALIGN(16) C_TgVEC_F32_04           KTgV_UNIT_Y_F32_04;
TgEXTN TgALIGN(16) C_TgVEC_F32_04           KTgV_UNIT_Z_F32_04;
TgEXTN TgALIGN(16) C_TgVEC_F32_04           KTgV_UNIT_W_F32_04;

TgEXTN TgALIGN(16) C_TgVEC_F64_03           KTgV_ZERO_F64_03;
TgEXTN TgALIGN(16) C_TgVEC_F64_03           KTgV_ONE_F64_03;
TgEXTN TgALIGN(16) C_TgVEC_F64_03           KTgV_UNIT_X_F64_03;
TgEXTN TgALIGN(16) C_TgVEC_F64_03           KTgV_UNIT_Y_F64_03;
TgEXTN TgALIGN(16) C_TgVEC_F64_03           KTgV_UNIT_Z_F64_03;

TgEXTN TgALIGN(16) C_TgVEC_F64_04           KTgV_ZERO_F64_04;
TgEXTN TgALIGN(16) C_TgVEC_F64_04           KTgV_ONE_F64_04;
TgEXTN TgALIGN(16) C_TgVEC_F64_04           KTgV_UNIT_X_F64_04;
TgEXTN TgALIGN(16) C_TgVEC_F64_04           KTgV_UNIT_Y_F64_04;
TgEXTN TgALIGN(16) C_TgVEC_F64_04           KTgV_UNIT_Z_F64_04;
TgEXTN TgALIGN(16) C_TgVEC_F64_04           KTgV_UNIT_W_F64_04;

TgEXTN TgALIGN(16) C_TgMAT_F32_34           KTgX_IDENT_F32_34;
TgEXTN TgALIGN(16) C_TgMAT_F32_44           KTgX_IDENT_F32_44;

enum
{
    KTgPERM_PARAM_SELECT_BIT = 0x80,
};


/* ====================================================================================================================================================================== */
#endif