• Home
  • Raw
  • Download

Lines Matching full:point

19 typedef struct tagPOINT POINT;  typedef
26 // A point has an x and y coordinate.
27 class GFX_EXPORT Point {
29 constexpr Point() : x_(0), y_(0) {} in Point() function
30 constexpr Point(int x, int y) : x_(x), y_(y) {} in Point() function
32 // |point| is a DWORD value that contains a coordinate. The x-coordinate is
35 explicit Point(DWORD point);
36 explicit Point(const POINT& point);
37 Point& operator=(const POINT& point);
39 explicit Point(const CGPoint& point);
43 POINT ToPOINT() const;
73 void SetToMin(const Point& other);
74 void SetToMax(const Point& other);
80 // A point is less than another point if its y-value is closer
81 // to the origin. If the y-values are the same, then point with
84 // This comparison is required to use Point in sets, or sorted
86 bool operator<(const Point& rhs) const {
90 // Returns a string representation of point.
98 inline bool operator==(const Point& lhs, const Point& rhs) {
102 inline bool operator!=(const Point& lhs, const Point& rhs) {
106 inline Point operator+(const Point& lhs, const Vector2d& rhs) {
107 Point result(lhs);
112 inline Point operator-(const Point& lhs, const Vector2d& rhs) {
113 Point result(lhs);
118 inline Vector2d operator-(const Point& lhs, const Point& rhs) {
123 inline Point PointAtOffsetFromOrigin(const Vector2d& offset_from_origin) { in PointAtOffsetFromOrigin()
124 return Point(offset_from_origin.x(), offset_from_origin.y()); in PointAtOffsetFromOrigin()
130 void PrintTo(const Point& point, ::std::ostream* os);
132 // Helper methods to scale a gfx::Point to a new gfx::Point.
133 GFX_EXPORT Point ScaleToCeiledPoint(const Point& point,
136 GFX_EXPORT Point ScaleToCeiledPoint(const Point& point, float x_scale);
137 GFX_EXPORT Point ScaleToFlooredPoint(const Point& point,
140 GFX_EXPORT Point ScaleToFlooredPoint(const Point& point, float x_scale);
141 GFX_EXPORT Point ScaleToRoundedPoint(const Point& point,
144 GFX_EXPORT Point ScaleToRoundedPoint(const Point& point, float x_scale);