Lines Matching defs:BAffineTransform

33 class BAffineTransform : public BFlattenable {
43 BAffineTransform();
44 BAffineTransform(double sx, double shy,
47 BAffineTransform(
48 const BAffineTransform& copyFrom);
49 virtual ~BAffineTransform();
61 static BAffineTransform AffineTranslation(double x, double y);
62 static BAffineTransform AffineRotation(double angle);
63 static BAffineTransform AffineScaling(double x, double y);
64 static BAffineTransform AffineScaling(double scale);
65 static BAffineTransform AffineShearing(double x, double y);
82 inline const BAffineTransform& TranslateBy(double x, double y);
83 const BAffineTransform& TranslateBy(const BPoint& delta);
85 inline const BAffineTransform& PreTranslateBy(double x, double y);
87 BAffineTransform TranslateByCopy(double x, double y) const;
88 BAffineTransform TranslateByCopy(const BPoint& delta) const;
90 // const BAffineTransform& SetTranslation(double x, double y);
93 inline const BAffineTransform& RotateBy(double angle);
94 const BAffineTransform& RotateBy(const BPoint& center,
97 inline const BAffineTransform& PreRotateBy(double angleRadians);
99 BAffineTransform RotateByCopy(double angle) const;
100 BAffineTransform RotateByCopy(const BPoint& center,
103 // const BAffineTransform& SetRotation(double angle);
106 inline const BAffineTransform& ScaleBy(double scale);
107 const BAffineTransform& ScaleBy(const BPoint& center,
109 inline const BAffineTransform& ScaleBy(double x, double y);
110 const BAffineTransform& ScaleBy(const BPoint& center, double x,
112 const BAffineTransform& ScaleBy(const BPoint& scale);
113 const BAffineTransform& ScaleBy(const BPoint& center,
116 inline const BAffineTransform& PreScaleBy(double x, double y);
118 BAffineTransform ScaleByCopy(double scale) const;
119 BAffineTransform ScaleByCopy(const BPoint& center,
121 BAffineTransform ScaleByCopy(double x, double y) const;
122 BAffineTransform ScaleByCopy(const BPoint& center,
124 BAffineTransform ScaleByCopy(const BPoint& scale) const;
125 BAffineTransform ScaleByCopy(const BPoint& center,
128 const BAffineTransform& SetScale(double scale);
129 const BAffineTransform& SetScale(double x, double y);
132 inline const BAffineTransform& ShearBy(double x, double y);
133 const BAffineTransform& ShearBy(const BPoint& center, double x,
135 const BAffineTransform& ShearBy(const BPoint& shear);
136 const BAffineTransform& ShearBy(const BPoint& center,
139 BAffineTransform ShearByCopy(double x, double y) const;
140 BAffineTransform ShearByCopy(const BPoint& center,
142 BAffineTransform ShearByCopy(const BPoint& shear) const;
143 BAffineTransform ShearByCopy(const BPoint& center,
146 // const BAffineTransform& SetShear(double x, double y);
149 inline const BAffineTransform& Multiply(const BAffineTransform& other);
150 const BAffineTransform& PreMultiply(const BAffineTransform& other);
151 inline const BAffineTransform& MultiplyInverse(
152 const BAffineTransform& other);
153 inline const BAffineTransform& PreMultiplyInverse(
154 const BAffineTransform& other);
157 inline BAffineTransform& operator=(
158 const BAffineTransform& copyFrom);
161 const BAffineTransform& other) const;
163 const BAffineTransform& other) const;
165 inline const BAffineTransform& operator*=(const BAffineTransform& other);
166 inline const BAffineTransform& operator/=(const BAffineTransform& other);
168 inline BAffineTransform operator*(
169 const BAffineTransform& other) const;
170 inline BAffineTransform operator/(
171 const BAffineTransform& other) const;
173 inline BAffineTransform operator~() const;
182 bool IsEqual(const BAffineTransform& other,
186 const BAffineTransform& Invert();
187 const BAffineTransform& FlipX();
188 const BAffineTransform& FlipY();
189 const BAffineTransform& Reset();
215 extern const BAffineTransform B_AFFINE_IDENTITY_TRANSFORM;
222 BAffineTransform::Apply(double* x, double* y) const
231 BAffineTransform::ApplyInverse(double* x, double* y) const
244 inline const BAffineTransform&
245 BAffineTransform::TranslateBy(double x, double y)
253 inline const BAffineTransform&
254 BAffineTransform::PreTranslateBy(double x, double y)
262 inline const BAffineTransform&
263 BAffineTransform::RotateBy(double angle)
280 inline const BAffineTransform&
281 BAffineTransform::PreRotateBy(double angle)
295 inline const BAffineTransform&
296 BAffineTransform::ScaleBy(double x, double y)
311 inline const BAffineTransform&
312 BAffineTransform::ScaleBy(double s)
326 inline const BAffineTransform&
327 BAffineTransform::PreScaleBy(double x, double y)
337 inline const BAffineTransform&
338 BAffineTransform::ShearBy(double x, double y)
340 BAffineTransform shearTransform = AffineShearing(x, y);
348 inline const BAffineTransform&
349 BAffineTransform::Multiply(const BAffineTransform& other)
351 BAffineTransform t(other);
356 inline const BAffineTransform&
357 BAffineTransform::MultiplyInverse(const BAffineTransform& other)
359 BAffineTransform t(other);
365 inline const BAffineTransform&
366 BAffineTransform::PreMultiplyInverse(const BAffineTransform& other)
368 BAffineTransform t(other);
377 inline BAffineTransform&
378 BAffineTransform::operator=(const BAffineTransform& other)
390 BAffineTransform::operator==(const BAffineTransform& other) const
396 BAffineTransform::operator!=(const BAffineTransform& other) const
402 inline const BAffineTransform&
403 BAffineTransform::operator*=(const BAffineTransform& other)
409 inline const BAffineTransform&
410 BAffineTransform::operator/=(const BAffineTransform& other)
416 inline BAffineTransform
417 BAffineTransform::operator*(const BAffineTransform& other) const
419 return BAffineTransform(*this).Multiply(other);
423 inline BAffineTransform
424 BAffineTransform::operator/(const BAffineTransform& other) const
426 return BAffineTransform(*this).MultiplyInverse(other);
430 inline BAffineTransform
431 BAffineTransform::operator~() const
433 BAffineTransform result(*this);
442 BAffineTransform::Determinant() const
449 BAffineTransform::InverseDeterminant() const