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

Side by Side Diff: Source/platform/transforms/AffineTransform.h

Issue 166273019: Add rotateRadians function to AffineTransform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 | « no previous file | Source/platform/transforms/AffineTransform.cpp » ('j') | 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 * 2010 Dirk Schulze <krit@webkit.org> 3 * 2010 Dirk Schulze <krit@webkit.org>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void setE(double e) { m_transform[4] = e; } 83 void setE(double e) { m_transform[4] = e; }
84 double f() const { return m_transform[5]; } 84 double f() const { return m_transform[5]; }
85 void setF(double f) { m_transform[5] = f; } 85 void setF(double f) { m_transform[5] = f; }
86 86
87 void makeIdentity(); 87 void makeIdentity();
88 88
89 AffineTransform& multiply(const AffineTransform& other); 89 AffineTransform& multiply(const AffineTransform& other);
90 AffineTransform& scale(double); 90 AffineTransform& scale(double);
91 AffineTransform& scale(double sx, double sy); 91 AffineTransform& scale(double sx, double sy);
92 AffineTransform& scaleNonUniform(double sx, double sy); 92 AffineTransform& scaleNonUniform(double sx, double sy);
93 AffineTransform& rotate(double d); 93 AffineTransform& rotate(double a);
94 AffineTransform& rotateRadians(double a);
94 AffineTransform& rotateFromVector(double x, double y); 95 AffineTransform& rotateFromVector(double x, double y);
95 AffineTransform& translate(double tx, double ty); 96 AffineTransform& translate(double tx, double ty);
96 AffineTransform& shear(double sx, double sy); 97 AffineTransform& shear(double sx, double sy);
97 AffineTransform& flipX(); 98 AffineTransform& flipX();
98 AffineTransform& flipY(); 99 AffineTransform& flipY();
99 AffineTransform& skew(double angleX, double angleY); 100 AffineTransform& skew(double angleX, double angleY);
100 AffineTransform& skewX(double angle); 101 AffineTransform& skewX(double angle);
101 AffineTransform& skewY(double angle); 102 AffineTransform& skewY(double angle);
102 103
103 double xScale() const; 104 double xScale() const;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 177 }
177 178
178 Transform m_transform; 179 Transform m_transform;
179 }; 180 };
180 181
181 PLATFORM_EXPORT AffineTransform makeMapBetweenRects(const FloatRect& source, con st FloatRect& dest); 182 PLATFORM_EXPORT AffineTransform makeMapBetweenRects(const FloatRect& source, con st FloatRect& dest);
182 183
183 } 184 }
184 185
185 #endif 186 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/platform/transforms/AffineTransform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698