DragonNest/Common/EngineUtil/EngineUtil.h
2024-12-20 16:56:44 +08:00

13 lines
994 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
EtVector2 EtVec3toVec2( EtVector3 &vVec );
EtVector3 EtVec2toVec3( EtVector2 &vVec );
bool CheckRect( float x, float y, EtVector2 &VecMin, EtVector2 &VecMax );
float RandomNumberInRange( float fMin, float fMax );
#ifndef EtClamp
#define EtClamp( value , minValue, maxValue ) ( ( (value) > (maxValue) ) ? (maxValue) : ( (value) < (minValue) ? (minValue) : (value) ) )
#endif
#ifndef EtAcos
#define EtAcos( value ) ( acosf( EtClamp( (value) , -1.0f, 1.0f ) ) )
#endif