/external/chromium_org/ui/gfx/geometry/ |
D | vector3d_unittest.cc | 15 gfx::Vector3dF float_zero(0, 0, 0); in TEST() 16 gfx::Vector3dF float_nonzero(0.1f, -0.1f, 0.1f); in TEST() 23 gfx::Vector3dF f1(3.1f, 5.1f, 2.7f); in TEST() 24 gfx::Vector3dF f2(4.3f, -1.3f, 8.1f); in TEST() 27 gfx::Vector3dF expected; in TEST() 28 gfx::Vector3dF actual; in TEST() 30 { gfx::Vector3dF(3.1F, 5.1F, 2.7f), f1 + gfx::Vector3dF() }, in TEST() 31 { gfx::Vector3dF(3.1f + 4.3f, 5.1f - 1.3f, 2.7f + 8.1f), f1 + f2 }, in TEST() 32 { gfx::Vector3dF(3.1f - 4.3f, 5.1f + 1.3f, 2.7f - 8.1f), f1 - f2 } in TEST() 42 gfx::Vector3dF expected; in TEST() [all …]
|
D | vector3d_f.h | 20 class GFX_EXPORT Vector3dF { 22 Vector3dF(); 23 Vector3dF(float x, float y, float z); 25 explicit Vector3dF(const Vector2dF& other); 40 void Add(const Vector3dF& other); 42 void Subtract(const Vector3dF& other); 44 void operator+=(const Vector3dF& other) { Add(other); } 45 void operator-=(const Vector3dF& other) { Subtract(other); } 47 void SetToMin(const Vector3dF& other) { in SetToMin() 53 void SetToMax(const Vector3dF& other) { in SetToMax() [all …]
|
D | vector3d_f.cc | 13 Vector3dF::Vector3dF() in Vector3dF() function in gfx::Vector3dF 19 Vector3dF::Vector3dF(float x, float y, float z) in Vector3dF() function in gfx::Vector3dF 25 Vector3dF::Vector3dF(const Vector2dF& other) in Vector3dF() function in gfx::Vector3dF 31 std::string Vector3dF::ToString() const { in ToString() 35 bool Vector3dF::IsZero() const { in IsZero() 39 void Vector3dF::Add(const Vector3dF& other) { in Add() 45 void Vector3dF::Subtract(const Vector3dF& other) { in Subtract() 51 double Vector3dF::LengthSquared() const { in LengthSquared() 56 float Vector3dF::Length() const { in Length() 60 void Vector3dF::Scale(float x_scale, float y_scale, float z_scale) { in Scale() [all …]
|
D | matrix3_unittest.cc | 21 Vector3dF(1.0f, 1.0f, 1.0f), Vector3dF(1.0f, 1.0f, 1.0f)); in TEST() 23 Vector3dF(1.0f, 1.0f, 1.0f), Vector3dF(0.0f, 0.0f, 0.0f)); in TEST() 37 EXPECT_EQ(Vector3dF(0.0f, 1.0f, 0.0f), identity.get_column(1)); in TEST() 39 EXPECT_EQ(Vector3dF(2.0f, 5.0f, 8.0f), matrix.get_column(2)); in TEST() 40 matrix.set_column(0, Vector3dF(0.1f, 0.2f, 0.3f)); in TEST() 41 EXPECT_EQ(Vector3dF(0.1f, 0.2f, 0.3f), matrix.get_column(0)); in TEST() 93 Vector3dF eigenvals = identity.SolveEigenproblem(NULL); in TEST() 94 EXPECT_EQ(Vector3dF(1.0f, 1.0f, 1.0f), eigenvals); in TEST() 105 Vector3dF eigenvals = matrix.SolveEigenproblem(&eigenvectors); in TEST() 106 EXPECT_EQ(Vector3dF(3.14f, 1.0f, -2.5f), eigenvals); in TEST() [all …]
|
D | matrix3_f.h | 20 static Matrix3F FromOuterProduct(const Vector3dF& a, const Vector3dF& bt); 49 Vector3dF get_column(int i) const { in get_column() 50 return Vector3dF( in get_column() 56 void set_column(int i, const Vector3dF& c) { in set_column() 88 Vector3dF SolveEigenproblem(Matrix3F* eigenvectors) const;
|
D | point3_f.h | 50 void operator+=(const Vector3dF& v) { 57 void operator-=(const Vector3dF& v) { 93 GFX_EXPORT Point3F operator+(const Point3F& lhs, const Vector3dF& rhs); 97 GFX_EXPORT Point3F operator-(const Point3F& lhs, const Vector3dF& rhs); 101 GFX_EXPORT Vector3dF operator-(const Point3F& lhs, const Point3F& rhs); 103 inline Point3F PointAtOffsetFromOrigin(const Vector3dF& offset) { in PointAtOffsetFromOrigin()
|
D | point3_f.cc | 15 Point3F operator+(const Point3F& lhs, const Vector3dF& rhs) { in operator +() 24 Point3F operator-(const Point3F& lhs, const Vector3dF& rhs) { in operator -() 33 Vector3dF operator-(const Point3F& lhs, const Point3F& rhs) { in operator -() 37 return Vector3dF(x, y, z); in operator -()
|
D | matrix3_f.cc | 80 Matrix3F Matrix3F::FromOuterProduct(const Vector3dF& a, const Vector3dF& bt) { in FromOuterProduct() 124 Vector3dF Matrix3F::SolveEigenproblem(Matrix3F* eigenvectors) const { in SolveEigenproblem() 131 return Vector3dF(); in SolveEigenproblem() 213 Vector3dF e1 = CrossProduct(matrix_b.get_column(0), in SolveEigenproblem() 215 Vector3dF e2 = CrossProduct(matrix_b.get_column(1), in SolveEigenproblem() 217 Vector3dF e3 = CrossProduct(matrix_b.get_column(2), in SolveEigenproblem() 227 Vector3dF eigvec = e1 + e2 + e3; in SolveEigenproblem() 234 return Vector3dF(eigenvalues[0], eigenvalues[1], eigenvalues[2]); in SolveEigenproblem()
|
D | point3_unittest.cc | 13 gfx::Vector3dF v1(3.1f, -3.2f, 9.3f); in TEST() 14 gfx::Vector3dF v2(-8.1f, 1.2f, 3.3f); in TEST() 24 { a, a + gfx::Vector3dF() }, in TEST() 42 gfx::Vector3dF v1(3.1f, -3.2f, 9.3f); in TEST()
|
D | box_unittest.cc | 163 EXPECT_EQ(box1.ToString(), (box1 + Vector3dF(0.f, 0.f, 0.f)).ToString()); in TEST() 165 (box1 + Vector3dF(1.f, -2.f, -4.f)).ToString()); in TEST() 168 box2 += Vector3dF(0.f, 0.f, 0.f); in TEST() 171 box2 += Vector3dF(1.f, -2.f, -4.f); in TEST()
|
D | box_f.h | 53 void operator+=(const Vector3dF& offset) { 149 inline BoxF operator+(const BoxF& b, const Vector3dF& v) {
|
/external/chromium_org/ash/wm/maximize_mode/ |
D | maximize_mode_controller_unittest.cc | 124 void TriggerAccelerometerUpdate(const gfx::Vector3dF& base, in TriggerAccelerometerUpdate() 125 const gfx::Vector3dF& lid) { in TriggerAccelerometerUpdate() 159 gfx::Vector3dF base(0.0f, 0.0f, 1.0f); in TEST_F() 162 TriggerAccelerometerUpdate(base, gfx::Vector3dF(-1.0f, 0.0f, 0.0f)); in TEST_F() 166 TriggerAccelerometerUpdate(base, gfx::Vector3dF(0.05f, 0.0f, -1.0f)); in TEST_F() 170 TriggerAccelerometerUpdate(base, gfx::Vector3dF(1.0f, 0.0f, 0.0f)); in TEST_F() 175 TriggerAccelerometerUpdate(base, gfx::Vector3dF(-0.05f, 0.0f, 1.0f)); in TEST_F() 179 TriggerAccelerometerUpdate(base, gfx::Vector3dF(-0.05f, 0.0f, -1.0f)); in TEST_F() 183 TriggerAccelerometerUpdate(base, gfx::Vector3dF(-1.0f, 0.0f, 0.0f)); in TEST_F() 191 TriggerAccelerometerUpdate(gfx::Vector3dF(0.0f, 0.0f, 1.0f), in TEST_F() [all …]
|
D | maximize_mode_controller.cc | 73 float AngleBetweenVectorsInDegrees(const gfx::Vector3dF& base, in AngleBetweenVectorsInDegrees() 74 const gfx::Vector3dF& other) { in AngleBetweenVectorsInDegrees() 81 float ClockwiseAngleBetweenVectorsInDegrees(const gfx::Vector3dF& base, in ClockwiseAngleBetweenVectorsInDegrees() 82 const gfx::Vector3dF& other, in ClockwiseAngleBetweenVectorsInDegrees() 83 const gfx::Vector3dF& normal) { in ClockwiseAngleBetweenVectorsInDegrees() 85 gfx::Vector3dF cross(base); in ClockwiseAngleBetweenVectorsInDegrees() 206 const gfx::Vector3dF& base, in OnAccelerometerUpdated() 207 const gfx::Vector3dF& lid) { in OnAccelerometerUpdated() 243 void MaximizeModeController::HandleHingeRotation(const gfx::Vector3dF& base, in HandleHingeRotation() 244 const gfx::Vector3dF& lid) { in HandleHingeRotation() [all …]
|
D | maximize_mode_controller.h | 102 virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base, 103 const gfx::Vector3dF& lid) OVERRIDE; 124 void HandleHingeRotation(const gfx::Vector3dF& base, 125 const gfx::Vector3dF& lid); 129 void HandleScreenRotation(const gfx::Vector3dF& lid);
|
/external/chromium_org/ash/accelerometer/ |
D | accelerometer_observer.h | 11 class Vector3dF; variable 21 virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base, 22 const gfx::Vector3dF& lid) = 0;
|
D | accelerometer_controller.h | 22 class Vector3dF; variable 53 virtual void HandleAccelerometerReading(const gfx::Vector3dF& base, 54 const gfx::Vector3dF& lid) OVERRIDE;
|
D | accelerometer_controller.cc | 35 const gfx::Vector3dF& base, in HandleAccelerometerReading() 36 const gfx::Vector3dF& lid) { in HandleAccelerometerReading()
|
/external/chromium_org/cc/animation/ |
D | transform_operations.cc | 124 gfx::Vector3dF from_scale; in MaximumScale() 125 gfx::Vector3dF to_scale; in MaximumScale() 130 gfx::Vector3dF scale_at_min_progress( in MaximumScale() 137 gfx::Vector3dF scale_at_max_progress( in MaximumScale() 145 gfx::Vector3dF max_scale_3d = scale_at_min_progress; in MaximumScale() 152 bool TransformOperations::ScaleComponent(gfx::Vector3dF* scale) const { in ScaleComponent() 153 *scale = gfx::Vector3dF(1.f, 1.f, 1.f); in ScaleComponent() 221 to_add.matrix.RotateAbout(gfx::Vector3dF(x, y, z), degrees); in AppendRotate()
|
D | transform_operation.cc | 128 result->RotateAbout(gfx::Vector3dF(axis_x, axis_y, axis_z), in BlendTransformOperations() 238 gfx::Vector3dF axis(exemplar->rotate.axis.x, in BoundingBoxForArc() 262 gfx::Vector3dF other_axis( in BoundingBoxForArc() 300 gfx::Vector3dF normal = axis; in BoundingBoxForArc() 305 gfx::Vector3dF to_point = point - origin; in BoundingBoxForArc() 311 gfx::Vector3dF v1 = point - center; in BoundingBoxForArc() 317 gfx::Vector3dF v2 = gfx::CrossProduct(normal, v1); in BoundingBoxForArc() 418 corner += gfx::Vector3dF(i & 1 ? box.width() : 0.f, in BlendedBoundsForBox()
|
/external/chromium_org/ui/gfx/ |
D | transform_unittest.cc | 716 Vector3dF axes[] = { in TEST() 717 Vector3dF(1, 0, 0), in TEST() 718 Vector3dF(0, 1, 0), in TEST() 719 Vector3dF(0, 0, 1), in TEST() 720 Vector3dF(1, 1, 1) in TEST() 741 Vector3dF axes[] = { in TEST() 742 Vector3dF(1, 0, 0), in TEST() 743 Vector3dF(0, 1, 0), in TEST() 744 Vector3dF(0, 0, 1), in TEST() 745 Vector3dF(1, 1, 1) in TEST() [all …]
|
D | interpolated_transform.h | 114 InterpolatedAxisAngleRotation(const gfx::Vector3dF& axis, 117 InterpolatedAxisAngleRotation(const gfx::Vector3dF& axis, 128 gfx::Vector3dF axis_;
|
D | color_analysis.cc | 482 const gfx::Vector3dF& color_transform, in ApplyColorReduction() 566 gfx::Vector3dF eigenvals = covariance.SolveEigenproblem(&eigenvectors); in ComputePrincipalComponentImage() 567 gfx::Vector3dF principal = eigenvectors.get_column(0); in ComputePrincipalComponentImage() 568 if (eigenvals == gfx::Vector3dF() || principal == gfx::Vector3dF()) in ComputePrincipalComponentImage()
|
D | transform.h | 21 class Vector3dF; variable 86 void RotateAbout(const Vector3dF& axis, double degrees);
|
/external/chromium_org/chromeos/accelerometer/ |
D | accelerometer_reader.h | 44 virtual void HandleAccelerometerReading(const gfx::Vector3dF& base, 45 const gfx::Vector3dF& lid) = 0;
|
/external/chromium_org/cc/layers/ |
D | layer_utils.cc | 108 box.set_origin(box.origin() + gfx::Vector3dF(-transform_origin_x, in GetAnimationBounds() 131 gfx::Vector3dF(transform_origin_x + position.x(), in GetAnimationBounds()
|