Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::math::geometry::utils Namespace Reference

Functions

float * getArrayFloatC3d (std::vector< iv::math::geometry::Point3d > points)
 
float * getArrayRgbac_old (const std::vector< iv::math::geometry::Point3d > &v, float alpha)
 
float * getArrayFloatC (const std::vector< iv::math::geometry::Point2d > &v)
 
float * getArrayFloatCAppendingZ (const std::vector< iv::math::geometry::Point2d > &v, float z)
 
double module (Point2d begining, Point2d end)
 
Point2d twoPointsToUnitVector (Point2d end, Point2d begining)
 
iv::math::geometry::Point2d getCentroid (const std::vector< iv::math::geometry::Point2d > &points)
 
iv::types::height getHeight (const std::vector< iv::math::geometry::Point2d > &points)
 
iv::types::width getWidth (const std::vector< iv::math::geometry::Point2d > &points)
 
void alignSecondPoint (const iv::math::geometry::Point2d &firstPoint, iv::math::geometry::Point2d &secondPoint)
 
void alignSecondPointWithDiagonal (const iv::math::geometry::Point2d &firstPoint, iv::math::geometry::Point2d &secondPoint)
 
bool isSamePoint2D (const iv::math::geometry::Point2d &firstPoint, const iv::math::geometry::Point2d &secondPoint, iv::types::coord precision)
 
template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d> || std::is_same_v<T, iv::math::geometry::Point3d>
void close (std::vector< T > &v)
 
template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d> || std::is_same_v<T, iv::math::geometry::Point3d>
bool isClosed (const std::vector< T > &v)
 
template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d>
double calculateArea (const std::vector< T > &v)
 
template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d>
float * getArrayFloatC (std::vector< T > points)
 
template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d> || std::is_same_v<T, iv::math::geometry::Point3d>
float * getArray3dc (const std::vector< T > &v, const double z)
 

Function Documentation

◆ alignSecondPoint()

void iv::math::geometry::utils::alignSecondPoint ( const iv::math::geometry::Point2d & firstPoint,
iv::math::geometry::Point2d & secondPoint )
inline

◆ alignSecondPointWithDiagonal()

void iv::math::geometry::utils::alignSecondPointWithDiagonal ( const iv::math::geometry::Point2d & firstPoint,
iv::math::geometry::Point2d & secondPoint )
inline

◆ calculateArea()

template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d>
double iv::math::geometry::utils::calculateArea ( const std::vector< T > & v)

◆ close()

template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d> || std::is_same_v<T, iv::math::geometry::Point3d>
void iv::math::geometry::utils::close ( std::vector< T > & v)

◆ getArray3dc()

template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d> || std::is_same_v<T, iv::math::geometry::Point3d>
float * iv::math::geometry::utils::getArray3dc ( const std::vector< T > & v,
const double z )

◆ getArrayFloatC() [1/2]

float * iv::math::geometry::utils::getArrayFloatC ( const std::vector< iv::math::geometry::Point2d > & v)

◆ getArrayFloatC() [2/2]

template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d>
float * iv::math::geometry::utils::getArrayFloatC ( std::vector< T > points)

◆ getArrayFloatC3d()

float * iv::math::geometry::utils::getArrayFloatC3d ( std::vector< iv::math::geometry::Point3d > points)

◆ getArrayFloatCAppendingZ()

float * iv::math::geometry::utils::getArrayFloatCAppendingZ ( const std::vector< iv::math::geometry::Point2d > & v,
float z )

◆ getArrayRgbac_old()

float * iv::math::geometry::utils::getArrayRgbac_old ( const std::vector< iv::math::geometry::Point3d > & v,
float alpha )

◆ getCentroid()

iv::math::geometry::Point2d iv::math::geometry::utils::getCentroid ( const std::vector< iv::math::geometry::Point2d > & points)
inline

◆ getHeight()

iv::types::height iv::math::geometry::utils::getHeight ( const std::vector< iv::math::geometry::Point2d > & points)
inline

◆ getWidth()

iv::types::width iv::math::geometry::utils::getWidth ( const std::vector< iv::math::geometry::Point2d > & points)
inline

◆ isClosed()

template<typename T >
requires std::is_same_v<T, iv::math::geometry::Point2d> || std::is_same_v<T, iv::math::geometry::Point3d>
bool iv::math::geometry::utils::isClosed ( const std::vector< T > & v)

◆ isSamePoint2D()

bool iv::math::geometry::utils::isSamePoint2D ( const iv::math::geometry::Point2d & firstPoint,
const iv::math::geometry::Point2d & secondPoint,
iv::types::coord precision )
inline

◆ module()

double iv::math::geometry::utils::module ( Point2d begining,
Point2d end )

◆ twoPointsToUnitVector()

Point2d iv::math::geometry::utils::twoPointsToUnitVector ( Point2d end,
Point2d begining )