Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template basic_point

boost::ui::basic_point — 2D point data structure with custom coordinates type

Synopsis

// In header: <boost/ui/coord.hpp>

template<typename T> 
class basic_point : public boost::geometry::model::d2::point_xy public ::boost::polygon::point_data< T >
{
public:
  // types
  typedef T value_type;  // Type of coordinates. 

  // construct/copy/destruct
  basic_point();
  basic_point(const T &, const T &);
  template<typename D> explicit basic_point(const basic_point< D > &);

  // public member functions
  T x() const;
  T y() const;
  void x(const T &);
  void y(const T &);
};

Description

See Also:

Point (Wikipedia)

basic_point public construct/copy/destruct

  1. basic_point();
    Constructs point with empty coordinates.
  2. basic_point(const T & x, const T & y);
    Constructs point with x and y coordinates.
  3. template<typename D> explicit basic_point(const basic_point< D > & p);
    Constructs size with an other size object.

basic_point public member functions

  1. T x() const;
    Returns x coordinate.
  2. T y() const;
    Returns y coordinate.
  3. void x(const T & x);
    Sets x coordinate.
  4. void y(const T & y);
    Sets y coordinate.

PrevUpHomeNext