Instigate Open Source Documentation

src/geometry/algorithm.hpp File Reference

Geometry algorithms, implemented using Instigate's GP methodology. More...

#include "concept_point.hpp"
#include "concept_line.hpp"
#include "concept_rectangle.hpp"
#include <stl/algorithm.hpp>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  instigate::geometry
namespace  instigate::geometry::implementation
 

Contains implementation details of geometry algorithms.


Functions

template<typename C >
instigate::geometry::implementation::get_middle_point (const C &a, const C &b, const C &c, const C &d)
 Helper function for get_first_nearest_point and get_second_nearest_point functions.
template<typename P , typename C >
void instigate::geometry::set_x (P &p, const C &c)
 Set x coordinate of a point to given value.
template<typename P , typename C >
void instigate::geometry::set_y (P &p, const C &c)
 Set y coordinate of a point to given value.
template<typename R , typename P >
void instigate::geometry::set_right (R &r, const P &x)
 set right coordinate of the rectangle
template<typename R , typename P >
void instigate::geometry::set_left (R &r, const P &x)
 set left coordinate of the rectangle
template<typename R >
bool instigate::geometry::is_intersect (const R &a, const R &b)
template<typename R , typename P >
void instigate::geometry::get_first_nearest_point (const R &a, const R &b, P &p)
template<typename R , typename P >
void instigate::geometry::get_second_nearest_point (const R &a, const R &b, P &p)
template<typename R , typename P >
void instigate::geometry::set_bottom (R &r, const P &x)
 set bottom coordinate of the rectangle
template<typename R , typename P >
void instigate::geometry::set_top (R &r, const P &x)
 set top coordinate of the rectangle
template<typename R , typename P >
instigate::geometry::get_right (R &r)
 get right coordinate of the rectangle
template<typename R , typename P >
instigate::geometry::get_left (R &r)
 get left coordinate of the rectangle
template<typename R , typename P >
instigate::geometry::get_bottom (R &r)
 get bottom coordinate of the rectangle
template<typename R , typename P >
instigate::geometry::get_top (R &r)
 get top coordinate of the rectangle
template<typename L , typename C >
void instigate::geometry::set_source_x (L &l, const C &x)
 Set source x coordinate of line to given value.
template<typename L , typename C >
void instigate::geometry::set_source_y (L &l, const C &y)
 Set source y coordinate of line to given value.
template<typename L , typename C >
void instigate::geometry::set_target_x (L &l, const C &x)
 Set target x coordinate of line to given value.
template<typename L , typename C >
void instigate::geometry::set_target_y (L &l, const C &y)
 Set target y coordinate of line to given value.
template<typename L , typename P >
instigate::geometry::get_source_x (L &l)
 get source x coordinate of the line
template<typename L , typename P >
instigate::geometry::get_source_y (L &l)
 get source y coordinate of the line
template<typename L , typename P >
instigate::geometry::get_target_x (L &l)
 get target x coordinate of the line
template<typename L , typename P >
instigate::geometry::get_target_y (L &l)
 get source y coordinate of the line
template<typename L , typename P >
void instigate::geometry::set_source (L &l, const P &v)
 Set source point of the line to given value.

Detailed Description

Geometry algorithms, implemented using Instigate's GP methodology.

Author:
Instigate CJSC, 2008

© 2005-2008 Instigate CJSC. All Rights Reserved.



© Instigate CJSC, Open Source