World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл VectorTypes.h

См. исходные тексты.

Классы

struct  Vec2< T >
 
struct  Vec3< T >
 
struct  Vec3_float_
 
struct  Vec4_int_
 
struct  Plane_int_
 
struct  BBox_short_
 
struct  BBox_int_
 
struct  Plane_float_
 
struct  Matrix3x3_float_
 

Функции

uint32_t int_get_vector_length (int32_t x, int32_t y, int32_t z)
 

Переменные

const float pi = std::acos(-1.f)
 

Функции

◆ int_get_vector_length()

uint32_t int_get_vector_length ( int32_t  x,
int32_t  y,
int32_t  z 
)

См. определение в файле VectorTypes.cpp строка 8

8  {
9  if (x < y) {
10  std::swap(x, y);
11  }
12  if (x < z) {
13  std::swap(x, z);
14  }
15  if (y < z) {
16  std::swap(y, z);
17  }
18 
19  return x + (11 * y >> 5) + (z >> 2);
20 }

Используется в CastSpellInfoHelpers::_427E01_cast_spell(), _43F5C8_get_point_light_level_with_respect_to_lights(), _45063B_spawn_some_monster(), LightmapBuilder::_45BE86_build_light_polygon(), LightmapBuilder::_45CC0C_light(), Party::_46A89E_immolation_effect(), Actor::AggroSurroundingPeasants(), CheckActors_proximity(), Actor::DamageMonsterFromParty(), GameUI_GetMinimapHintText(), Vec3< int >::GetDistanceTo(), GetMapBookHintText(), IsBModelVisible(), Actor::MakeActorAIList_BLV(), Actor::MakeActorAIList_ODM(), UpdateActors_BLV(), UpdateObjects() и Party::Yell().

+ Граф вызова функции:

Переменные

◆ pi

const float pi = std::acos(-1.f)

См. определение в файле VectorTypes.h строка 22

Используется в Vec3< int >::Rotate(), Application::Run() и AudioPlayer::UpdateSounds().

z
GLdouble GLdouble z
Definition: SDL_opengl_glext.h:407
y
EGLSurface EGLint EGLint y
Definition: SDL_egl.h:1596
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596