Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: third_party/WebKit/Source/platform/transforms/TransformationMatrix.h

Issue 1973343003: Initial implementation of GeometryMapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/README.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 void setF(double f) { m_matrix[3][1] = f; } 264 void setF(double f) { m_matrix[3][1] = f; }
265 265
266 // *this = *this * mat. 266 // *this = *this * mat.
267 TransformationMatrix& multiply(const TransformationMatrix&); 267 TransformationMatrix& multiply(const TransformationMatrix&);
268 268
269 TransformationMatrix& scale(double); 269 TransformationMatrix& scale(double);
270 TransformationMatrix& scaleNonUniform(double sx, double sy); 270 TransformationMatrix& scaleNonUniform(double sx, double sy);
271 TransformationMatrix& scale3d(double sx, double sy, double sz); 271 TransformationMatrix& scale3d(double sx, double sy, double sz);
272 272
273 TransformationMatrix& rotate(double d) { return rotate3d(0, 0, d); } 273 TransformationMatrix& rotate(double d) { return rotate3d(0, 0, d); }
274 // Angles are in degrees.
274 TransformationMatrix& rotate3d(double rx, double ry, double rz); 275 TransformationMatrix& rotate3d(double rx, double ry, double rz);
275 TransformationMatrix& rotate3d(const Rotation&); 276 TransformationMatrix& rotate3d(const Rotation&);
276 277
277 // The vector (x,y,z) is normalized if it's not already. A vector of 278 // The vector (x,y,z) is normalized if it's not already. A vector of
278 // (0,0,0) uses a vector of (0,0,1). 279 // (0,0,0) uses a vector of (0,0,1).
279 TransformationMatrix& rotate3d(double x, double y, double z, double angle); 280 TransformationMatrix& rotate3d(double x, double y, double z, double angle);
280 281
281 TransformationMatrix& translate(double tx, double ty); 282 TransformationMatrix& translate(double tx, double ty);
282 TransformationMatrix& translate3d(double tx, double ty, double tz); 283 TransformationMatrix& translate3d(double tx, double ty, double tz);
283 284
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 Matrix4 m_matrix; 434 Matrix4 m_matrix;
434 }; 435 };
435 436
436 // Redeclared here to avoid ODR issues. 437 // Redeclared here to avoid ODR issues.
437 // See platform/testing/TransformPrinters.h. 438 // See platform/testing/TransformPrinters.h.
438 void PrintTo(const TransformationMatrix&, std::ostream*); 439 void PrintTo(const TransformationMatrix&, std::ostream*);
439 440
440 } // namespace blink 441 } // namespace blink
441 442
442 #endif // TransformationMatrix_h 443 #endif // TransformationMatrix_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698