Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Classes | Namespaces | Typedefs | Functions
coordinates.h File Reference
#include <math.h>
#include <entt/entt.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include "common/components/bodies.h"
#include "common/components/units.h"

Go to the source code of this file.

Classes

struct  cqsp::common::components::types::OrbitDirty
 
struct  cqsp::common::components::types::Kinematics
 Relative position from the parent orbiting object. More...
 
struct  cqsp::common::components::types::FuturePosition
 
struct  cqsp::common::components::types::Impulse
 
struct  cqsp::common::components::types::GalacticCoordinate
 Way to position star systems on the universe. More...
 
struct  cqsp::common::components::types::PolarCoordinate_tp< T >
 
struct  cqsp::common::components::types::MoveTarget
 
struct  cqsp::common::components::types::SurfaceCoordinate
 Longitude and lattitude. Planet coordinates. More...
 

Namespaces

namespace  cqsp
 When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to find out how to add a resource to the game.
 
namespace  cqsp::common
 
namespace  cqsp::common::components
 
namespace  cqsp::common::components::types
 

Typedefs

typedef PolarCoordinate_tp< types::astronomical_unit > cqsp::common::components::types::PolarCoordinate
 

Functions

double cqsp::common::components::types::GreatCircleDistance (SurfaceCoordinate &coord1, SurfaceCoordinate &coord2)
 Calculates the angle between the two coordinates. Just multiply by the planet's diameter for fun and engagement. More...
 
glm::vec3 cqsp::common::components::types::toVec3 (const SurfaceCoordinate &coord, const float &radius=1)
 Converts surface coordinate to vector3 in space so that we can get the surface coordinate to render in space More...
 
glm::vec3 cqsp::common::components::types::toVec3 (const PolarCoordinate &coordinate)
 2D polar coordinate to opengl 3d coordinate More...
 
double cqsp::common::components::types::GetLaunchAzimuth (double latitude, double inclination)
 Calculates the azimuth of the orbit based on the latitude and inclination More...
 
double cqsp::common::components::types::GetLaunchInclination (double latitude, double azimuth)
 Calculates the inclination of the orbit based on the latitude and azimuth More...
 
SurfaceCoordinate cqsp::common::components::types::ToSurfaceCoordinate (const glm::vec3 &vec)