Lines Matching refs:Linear
3 * \brief Linear fragment function class
50 class Linear
51 : boost::additive< Linear
52 , boost::arithmetic< Linear, Coord
53 , boost::equality_comparable< Linear
58 Linear() {a[0]=0; a[1]=0;}
59 Linear(Coord aa, Coord b) {a[0] = aa; a[1] = b;}
60 Linear(Coord aa) {a[0] = aa; a[1] = aa;}
110 Linear &operator+=(Linear const &other) {
115 Linear &operator-=(Linear const &other) {
122 Linear &operator+=(Coord x) {
126 Linear &operator-=(Coord x) {
130 Linear &operator*=(Coord x) {
134 Linear &operator/=(Coord x) {
138 Linear operator-() const {
139 Linear ret(-a[0], -a[1]);
143 bool operator==(Linear const &other) const {
148 inline Linear reverse(Linear const &a) { return Linear(a[1], a[0]); }
149 inline Linear portion(Linear const &a, Coord from, Coord to) {
150 Linear result(a.valueAt(from), a.valueAt(to));