Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
utils.cpp File Reference
#include "math/utils.hpp"
#include "core/exception.hpp"
#include <algorithm>
#include <cmath>
Include dependency graph for utils.cpp:

Namespaces

namespace  iv
 
namespace  iv::math
 
namespace  iv::math::utils
 
namespace  iv::math::geometry
 
namespace  iv::math::geometry::utils
 

Functions

bool iv::math::utils::isSameSign (const double value1, const double value2, const double precision)
 
double iv::math::utils::valueInterpolation (double valueNormalized, double valueMin, double valueMax)
 
int64_t iv::math::utils::mmToDp (int64_t sizeMm)
 
iv::types::radian iv::math::utils::degreeToRadian (iv::types::degree degree)
 
iv::types::degree iv::math::utils::radianToDegree (iv::types::radian radian)
 
iv::math::geometry::Point2d iv::math::utils::pointOnCircle (iv::types::radius radius, iv::types::degree angle)
 
double iv::math::utils::stepsIncrement (const iv::types::Range< double > range, const uint64_t steps)
 
double iv::math::utils::roundToNearestStep (double value, const double step, iv::types::Range< double > range)
 
float * iv::math::geometry::utils::getArrayFloatC3d (std::vector< iv::math::geometry::Point3d > points)
 
float * iv::math::geometry::utils::getArrayRgbac_old (const std::vector< iv::math::geometry::Point3d > &v, float alpha)
 
float * iv::math::geometry::utils::getArrayFloatC (const std::vector< iv::math::geometry::Point2d > &v)
 
float * iv::math::geometry::utils::getArrayFloatCAppendingZ (const std::vector< iv::math::geometry::Point2d > &v, float z)
 
double iv::math::geometry::utils::module (Point2d begining, Point2d end)
 
Point2d iv::math::geometry::utils::twoPointsToUnitVector (Point2d end, Point2d begining)