OpenSiv3D  v0.6.5
C++20 framework for creative coding
Interpolation.hpp File Reference
#include <cmath>
#include "Common.hpp"
#include "PointVector.hpp"
#include "Optional.hpp"
#include "Unspecified.hpp"
#include "Scene.hpp"
#include "detail/Interpolation.ipp"

Namespaces

 s3d
 
 s3d::Math
 

Functions

template<class T , class U , class V >
constexpr auto s3d::Math::Lerp (const T &v1, const U &v2, V f) noexcept
 線形補間した結果を返します。 More...
 
constexpr double s3d::Math::InvLerp (double a, double b, double value) noexcept
 
template<class T , class U >
constexpr auto s3d::Math::Map (double value, double a, double b, const T &v1, const U &v2) noexcept
 
template<class T , class U , class V >
auto s3d::Math::LerpAngle (T from, U to, V t) noexcept
 
double s3d::Math::Eerp (double a, double b, double t) noexcept
 
float s3d::Math::Damp (float a, float b, float r, float dt)
 
double s3d::Math::Damp (double a, double b, double r, double dt)
 
Float2 s3d::Math::Damp (const Float2 &a, const Float2 &b, float r, float dt)
 
Vec2 s3d::Math::Damp (const Vec2 &a, const Vec2 &b, double r, double dt)
 
Float3 s3d::Math::Damp (const Float3 &a, const Float3 &b, float r, float dt)
 
Vec3 s3d::Math::Damp (const Vec3 &a, const Vec3 &b, double r, double dt)
 
Float4 s3d::Math::Damp (const Float4 &a, const Float4 &b, float r, float dt)
 
Vec4 s3d::Math::Damp (const Vec4 &a, const Vec4 &b, double r, double dt)
 
float s3d::Math::SmoothDamp (float from, float to, float &velocity, float smoothTime, const Optional< float > &maxSpeed=unspecified, float deltaTime=static_cast< float >(Scene::DeltaTime()))
 目標地点に向かってスムーズに移動させます。 More...
 
double s3d::Math::SmoothDamp (double from, double to, double &velocity, double smoothTime, const Optional< double > &maxSpeed=unspecified, double deltaTime=Scene::DeltaTime())
 目標地点に向かってスムーズに移動させます。 More...
 
Float2 s3d::Math::SmoothDamp (const Float2 &from, const Float2 &to, Float2 &velocity, float smoothTime, const Optional< float > &maxSpeed=unspecified, float deltaTime=static_cast< float >(Scene::DeltaTime()))
 目標地点に向かってスムーズに移動させます。 More...
 
Vec2 s3d::Math::SmoothDamp (const Vec2 &from, const Vec2 &to, Vec2 &velocity, double smoothTime, const Optional< double > &maxSpeed=unspecified, double deltaTime=Scene::DeltaTime())
 目標地点に向かってスムーズに移動させます。 More...
 
Float3 s3d::Math::SmoothDamp (const Float3 &from, const Float3 &to, Float3 &velocity, float smoothTime, const Optional< float > &maxSpeed=unspecified, float deltaTime=static_cast< float >(Scene::DeltaTime()))
 目標地点に向かってスムーズに移動させます。 More...
 
Vec3 s3d::Math::SmoothDamp (const Vec3 &from, const Vec3 &to, Vec3 &velocity, double smoothTime, const Optional< double > &maxSpeed=unspecified, double deltaTime=Scene::DeltaTime())
 目標地点に向かってスムーズに移動させます。 More...
 
Float4 s3d::Math::SmoothDamp (const Float4 &from, const Float4 &to, Float4 &velocity, float smoothTime, const Optional< float > &maxSpeed=unspecified, float deltaTime=static_cast< float >(Scene::DeltaTime()))
 目標地点に向かってスムーズに移動させます。 More...
 
Vec4 s3d::Math::SmoothDamp (const Vec4 &from, const Vec4 &to, Vec4 &velocity, double smoothTime, const Optional< double > &maxSpeed=unspecified, double deltaTime=Scene::DeltaTime())
 目標地点に向かってスムーズに移動させます。 More...