Go to the source code of this file.
Classes | |
class | C4Fixed |
Macros | |
#define | C4REAL_USE_FIXNUM 1 |
#define | inline ALWAYS_INLINE |
#define | FIXED_SHIFT 16 |
#define | FIXED_FPF int32_t(1 << FIXED_SHIFT) |
Typedefs | |
typedef C4Fixed | C4Real |
Functions | |
float | fixtof (const C4Fixed &x) |
C4Fixed | ftofix (float x) |
int | fixtoi (const C4Fixed &x) |
int | fixtoi (const C4Fixed &x, int32_t prec) |
C4Fixed | itofix (int32_t x) |
C4Fixed | itofix (int32_t x, int32_t prec) |
C4Real | Sin (const C4Real &fAngle) |
C4Real | Cos (const C4Real &fAngle) |
C4Real | C4REAL100 (int x) |
C4Real | C4REAL256 (int x) |
C4Real | C4REAL10 (int x) |
void | FLOAT_TO_FIXED (C4Real *pVal) |
void | CompileFunc (C4Real &rValue, StdCompiler *pComp) |
Variables | |
long | SineTable [9001] |
const C4Real | Fix0 = itofix(0) |
const C4Real | Fix1 = itofix(1) |
#define FIXED_FPF int32_t(1 << FIXED_SHIFT) |
#define inline ALWAYS_INLINE |
|
inline |
Definition at line 269 of file C4Real.h.
References itofix().
Referenced by C4Game::CastObjects(), C4MCOverlay::CheckMask(), C4Landscape::InsertMaterial(), and ObjectComDrop().
|
inline |
Definition at line 267 of file C4Real.h.
References itofix().
Referenced by C4Object::ContactAction(), C4Sky::Execute(), C4Command::MoveTo(), mrfInsertCheck(), C4MaterialMap::mrfScript(), ObjectActionThrow(), ObjectComDrop(), ObjectComJump(), ObjectComPunch(), C4Command::Put(), C4Landscape::ScenarioInit(), and C4Command::Throw().
|
inline |
Definition at line 268 of file C4Real.h.
References FIXED_FPF, and C4Fixed::val.
Referenced by C4PXS::Execute().
void CompileFunc | ( | C4Real & | rValue, |
StdCompiler * | pComp | ||
) |
Definition at line 70 of file C4Real.cpp.
Referenced by C4ValueProviderLinear::CompileFunc(), C4ValueProviderX::CompileFunc(), C4ValueProviderY::CompileFunc(), C4ValueProviderR::CompileFunc(), C4ValueProviderAbsX::CompileFunc(), C4ValueProviderAbsY::CompileFunc(), C4ValueProviderDist::CompileFunc(), C4ValueProviderXDir::CompileFunc(), C4ValueProviderYDir::CompileFunc(), C4ValueProviderRDir::CompileFunc(), C4ValueProviderAbsRDir::CompileFunc(), C4ValueProviderCosR::CompileFunc(), C4ValueProviderSinR::CompileFunc(), C4ValueProviderCosV::CompileFunc(), C4ValueProviderSinV::CompileFunc(), and C4ValueProviderAction::CompileFunc().
Definition at line 266 of file C4Real.h.
References C4Fixed::cos_deg().
Referenced by C4MapScriptAlgoRotate::C4MapScriptAlgoRotate(), C4MCOverlay::CheckMask(), C4Weather::Execute(), C4ValueProviderCosR::Execute(), C4ValueProviderCosV::Execute(), InitCoreFunctionMap(), C4SolidMask::Put(), and C4Shape::Rotate().
|
inline |
Definition at line 257 of file C4Real.h.
Referenced by C4Viewport::AdjustPosition(), C4PXSSystem::Draw(), C4Sky::Draw(), C4Object::Draw(), C4ParticleChunk::Draw(), C4Object::DrawActionFace(), C4Game::DrawCrewOverheadText(), C4Object::DrawFace(), C4Object::DrawFaceImpl(), StdMeshInstanceAnimationNode::GetBoneTransform(), C4Object::GetDrawPosition(), C4Object::GetViewPosPar(), C4Player::ZoomLimitsToViewport(), and C4Player::ZoomToViewport().
|
inline |
Definition at line 259 of file C4Real.h.
Referenced by AlgoSin(), C4MapScriptAlgoRotate::C4MapScriptAlgoRotate(), C4MCOverlay::CheckMask(), C4SortObjectSpeed::CompareGetValue(), CreateValueProviderFromArray(), C4GameObjects::CrossCheck(), C4Object::DoMovement(), C4PXSSystem::Draw(), C4PXS::Execute(), C4Weather::Execute(), C4ValueProviderAbsX::Execute(), C4ValueProviderDist::Execute(), C4ValueProviderCosV::Execute(), C4ValueProviderSinV::Execute(), C4ControlSyncCheck::GetAllCrewPosX(), C4Object::GetR(), C4Object::GetX(), C4Object::GetY(), C4MaterialMap::mrfScript(), ObjectActionJump(), C4SolidMask::Put(), C4Shape::Rotate(), SimFlight(), SimFlightHitsLiquid(), TrajectoryDistance(), and C4FoWLight::Update().
|
inline |
|
inline |
Definition at line 318 of file C4Real.h.
References ftofix().
Referenced by C4PXSSystem::Load().
|
inline |
Definition at line 258 of file C4Real.h.
Referenced by C4EditCursor::ApplyCreateObject(), CreateValueProviderFromArray(), C4Game::DropDef(), C4ValueProviderAction::Execute(), StdMeshInstance::ExecuteAnimationNode(), FLOAT_TO_FIXED(), C4EditCursor::Move(), StdMeshInstance::PlayAnimation(), C4Player::ScrollView(), StdMeshInstance::SetAnimationPosition(), and C4GraphicsOverlay::UpdateFacet().
|
inline |
Definition at line 261 of file C4Real.h.
Referenced by C4Object::AdjustWalkRotation(), AlgoSin(), C4MapScriptAlgoRotate::C4MapScriptAlgoRotate(), C4REAL10(), C4REAL100(), C4PXSSystem::Cast(), C4Game::CastObjects(), C4Landscape::CheckInstability(), C4MCOverlay::CheckMask(), CreateValueProviderFromArray(), C4Object::DoMovement(), C4PXS::Execute(), C4Sky::Execute(), C4Weather::Execute(), C4ValueProviderLinear::Execute(), C4ValueProviderAbsX::Execute(), C4ValueProviderDist::Execute(), C4ValueProviderXDir::Execute(), C4ValueProviderYDir::Execute(), C4ValueProviderRDir::Execute(), C4ValueProviderAbsRDir::Execute(), C4ValueProviderCosV::Execute(), C4ValueProviderSinV::Execute(), C4ValueProviderAction::Execute(), StdMeshInstance::ExecuteAnimationNode(), C4Object::Exit(), C4Object::Init(), StdMeshInstance::InsertAnimationNode(), C4Landscape::InsertMaterial(), C4EditCursor::Move(), C4Object::MovePosition(), C4Command::MoveTo(), C4MaterialMap::mrfConvert(), mrfInsertCheck(), C4Object::NoAttachAction(), ObjectComJump(), ObjectComLetGo(), ObjectComPunch(), C4SolidMask::Put(), C4Object::SetAction(), StdMeshInstance::SetAnimationWeight(), C4Object::SetRotation(), C4Landscape::P::ShakeFreePix(), C4Object::SideBounds(), SimFlight(), C4Object::Stabilize(), TrajectoryDistance(), C4GraphicsOverlay::UpdateFacet(), and C4Object::VerticalBounds().
|
inline |
Definition at line 265 of file C4Real.h.
References C4Fixed::sin_deg().
Referenced by AlgoSin(), C4MapScriptAlgoRotate::C4MapScriptAlgoRotate(), C4MCOverlay::CheckMask(), C4ValueProviderSinR::Execute(), C4ValueProviderSinV::Execute(), InitCoreFunctionMap(), C4SolidMask::Put(), and C4Shape::Rotate().
Definition at line 312 of file C4Real.h.
Referenced by C4Player::C4Player(), C4SolidMask::C4SolidMask(), C4Object::ChangeDef(), C4Object::ClearContentsAndContained(), C4Sky::CompileFunc(), C4Object::CompileFunc(), C4Player::CompileFunc(), C4MassMover::Corrosion(), C4Game::CreateInfoObject(), C4Game::CreateObjectConstruction(), C4EditCursor::Delete(), C4Object::DoMovement(), C4Object::Draw(), C4Object::DrawActionFace(), C4Object::DrawFace(), C4Object::DrawFaceImpl(), C4Object::DrawTopFace(), C4EditCursor::Duplicate(), C4Object::ExecMovement(), C4EditCursor::Execute(), StdMeshInstance::ExecuteAnimationNode(), C4Object::GetSpeed(), C4EditCursor::GrabContents(), C4EditCursor::In(), StdMeshInstance::InsertAnimationNode(), C4EditCursor::LeftButtonUp(), C4Object::Lift(), C4Object::NoAttachAction(), ObjectComDrop(), ObjectComJump(), ObjectComLetGo(), ObjectComPunch(), StdMeshInstance::PlayAnimation(), C4Object::Push(), C4SolidMask::Put(), C4EditCursor::PutContents(), StdMeshInstance::SetAnimationPosition(), StdMeshInstance::SetAnimationWeight(), C4Object::SetOCF(), C4Object::Stabilize(), C4Object::UpdateFace(), C4Object::UpdateOCF(), and C4Object::UpdateShape().
|
extern |
Referenced by C4Fixed::cos_deg(), and C4Fixed::sin_deg().