5 #ifndef FLUTTER_IMPELLER_GEOMETRY_TRIG_H_
6 #define FLUTTER_IMPELLER_GEOMETRY_TRIG_H_
A structure to store the sine and cosine of an angle.
Vector2 operator*(double radius) const
Returns the corresponding point on a circle of a given |radius|.
Vector2 operator*(const Vector2 &vector) const
Returns the vector rotated by the represented angle.
Trig(double cos, double sin)
Construct a Trig object from the given cosine and sine values.
Trig operator-() const
Returns the Trig representing the negative version of this angle.
Trig(Radians r)
Construct a Trig object from a given angle in radians.
Vector2 operator*(const Size &ellipse_radii) const
Returns the corresponding point on an ellipse with the given size.