comparison Framework/Toolbox/Extent.h @ 109:53bd9277b025 wasm

using the Extent class
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Jun 2017 15:34:08 +0200
parents d18dcc963930
children
comparison
equal deleted inserted replaced
108:37d4ae7052a5 109:53bd9277b025
36 Extent() 36 Extent()
37 { 37 {
38 Reset(); 38 Reset();
39 } 39 }
40 40
41 Extent(double x1,
42 double y1,
43 double x2,
44 double y2);
45
41 void Reset(); 46 void Reset();
42 47
43 void AddPoint(double x, 48 void AddPoint(double x,
44 double y); 49 double y);
45 50
46 void Union(const Extent& other); 51 void Union(const Extent& other);
47 52
48 bool IsEmpty() const 53 bool IsEmpty() const;
49 {
50 return empty_;
51 }
52 54
53 double GetX1() const 55 double GetX1() const
54 { 56 {
55 return x1_; 57 return x1_;
56 } 58 }