Describes a point in the 2dimensional (x,y) coordinate system, typically in an Illustrator document view or a UI window.
More...
#include <hdicorePoint.h>

typedef std::vector< Point >  PointVector 


double  x 
 Position on the xaxis.


double  y 
 Position on the yaxis.



plugin::Point *  __accessImpl (const Point &) 

Point  __accessCtor (const plugin::Point &) 

Describes a point in the 2dimensional (x,y) coordinate system, typically in an Illustrator document view or a UI window.
◆ Point() [1/3]
hdi::core::Point::Point 
( 
 ) 

Default Point constructor; sets x and y to 0.0.
 Author
 GW
 Date
 08/2013
◆ Point() [2/3]
hdi::core::Point::Point 
( 
const double 
x_, 


const double 
y_ 

) 
 
Point constructor, taking x and y arguments.
 Author
 GW
 Date
 08/2013
 Parameters

x_  Position on the xaxis 
y_  Position on the yaxis 
◆ Point() [3/3]
hdi::core::Point::Point 
( 
const Point & 
pt_  ) 

Point copy constructor.
 Author
 GW
 Date
 08/2013
 Parameters

pt_  Existing Point object to copy 
◆ ~Point()
virtual hdi::core::Point::~Point 
( 
 ) 


virtual 
Point destructor.
 Author
 GW
 Date
 08/2013
◆ insidePolygon()
virtual bool hdi::core::Point::insidePolygon 
( 
const PointVector & 
points_  ) 
const 

virtual 
Checks if the point is within the provided polygon.
 Author
 GW
 Date
 08/2013
 Parameters

points_[]  Points that describe the polygon 
 Returns
 true if the point lies within the provided polygon, false otherwise
◆ offset()
virtual Point hdi::core::Point::offset 
( 
const double 
tx_, 


const double 
ty_ 

) 
 const 

virtual 
Offsets a point along the x and yaxes by given amounts.
 Author
 GW
 Date
 08/2013
 Parameters

tx_  Amount to offset along the xaxis 
ty_  Amount to offset along the yaxis 
 Returns
 A copy of the target point, offset by the given amounts
 Note
 Negative values go toward 0.0 if the object to be transformed has a positive x and/or y value; positive values go away from 0.0
◆ operator!=()
virtual bool hdi::core::Point::operator!= 
( 
const Point & 
rhs_  ) 
const 

virtual 
Tests whether a given Point object is not the same as another.
 Author
 GW
 Date
 08/2013
 Parameters

rhs_  Point to compare against (righthand side of inequality operator) 
 Returns
 true for the target and rhs_ being different points, false otherwise
◆ operator+()
virtual Point hdi::core::Point::operator+ 
( 
const Point & 
rhs_  ) 
const 

virtual 
Allows two points to have their x and y values added using the + operator.
 Author
 GW
 Date
 08/2013
 Parameters

rhs_  Righthand side of the + operator 
 Returns
 A copy of the target Point, with all x and y values summed together
◆ operator+=()
virtual Point& hdi::core::Point::operator+= 
( 
const Point & 
rhs_  ) 


virtual 
Allows two points to have their x and y values added and assigned using the += operator.
 Author
 GW
 Date
 08/2013
 Parameters

rhs_  Righthand side of the += operator 
 Returns
 The lefthand side of the += operator, with all x and y values summed together
◆ operator()
virtual Point hdi::core::Point::operator 
( 
const Point & 
rhs_  ) 
const 

virtual 
Allows two points to have their x and y values subtracted using the  operator.
 Author
 GW
 Date
 08/2013
 Parameters

rhs_  Righthand side of the  operator 
 Returns
 A copy of the target Point, with rhs_ x and y values subtracted from this x and y
◆ operator=()
virtual Point& hdi::core::Point::operator= 
( 
const Point & 
rhs_  ) 


virtual 
Allows two points to have their x and y values subtracted and assigned using the = operator.
 Author
 GW
 Date
 08/2013
 Parameters

rhs_  Righthand side of the = operator 
 Returns
 The lefthand side of the = operator, with rhs_ x and y values subtracted from this x and y
◆ operator=()
virtual Point& hdi::core::Point::operator= 
( 
const Point & 
rhs_  ) 


virtual 
Sets a Point object from another Point object.
 Author
 GW
 Date
 08/2013
 Parameters

rhs_  Righthand side of the = operator; Point object to pull values from 
 Returns
 The target Point object, but with its value updated
◆ operator==()
virtual bool hdi::core::Point::operator== 
( 
const Point & 
rhs_  ) 
const 

virtual 
Tests whether a given Point object is the same as another.
 Author
 GW
 Date
 08/2013
 Parameters

rhs_  Point to compare against (righthand side of equality operator) 
 Returns
 true for the target and rhs_ being the same point, false otherwise