/external/angle/util/ |
D | geometry_utils.cpp | 38 Vector3 direction(sinf(angleStep * i) * sinf(angleStep * j), cosf(angleStep * i), in CreateSphereGeometry() 69 result->positions[0] = Vector3(-radius, -radius, -radius); in GenerateCubeGeometry() 70 result->positions[1] = Vector3(-radius, -radius, radius); in GenerateCubeGeometry() 71 result->positions[2] = Vector3(radius, -radius, radius); in GenerateCubeGeometry() 72 result->positions[3] = Vector3(radius, -radius, -radius); in GenerateCubeGeometry() 73 result->positions[4] = Vector3(-radius, radius, -radius); in GenerateCubeGeometry() 74 result->positions[5] = Vector3(-radius, radius, radius); in GenerateCubeGeometry() 75 result->positions[6] = Vector3(radius, radius, radius); in GenerateCubeGeometry() 76 result->positions[7] = Vector3(radius, radius, -radius); in GenerateCubeGeometry() 77 result->positions[8] = Vector3(-radius, -radius, -radius); in GenerateCubeGeometry() [all …]
|
D | Matrix.h | 39 static Matrix4 rotate(float angle, const angle::Vector3 &p); 40 static Matrix4 translate(const angle::Vector3 &t); 41 static Matrix4 scale(const angle::Vector3 &s); 49 static angle::Vector3 transform(const Matrix4 &mat, const angle::Vector3 &pt); 50 static angle::Vector3 transform(const Matrix4 &mat, const angle::Vector4 &pt);
|
D | geometry_utils.h | 26 std::vector<angle::Vector3> positions; 27 std::vector<angle::Vector3> normals; 40 std::vector<angle::Vector3> positions; 41 std::vector<angle::Vector3> normals;
|
D | Matrix.cpp | 79 Matrix4 Matrix4::rotate(float angle, const Vector3 &p) in rotate() 81 Vector3 u = p.normalized(); in rotate() 97 Matrix4 Matrix4::translate(const Vector3 &t) in translate() 103 Matrix4 Matrix4::scale(const Vector3 &s) in scale() 132 return rotate(yaw, Vector3(0, 0, 1)) * rotate(pitch, Vector3(0, 1, 0)) * in rollPitchYaw() 133 rotate(roll, Vector3(1, 0, 0)); in rollPitchYaw() 210 Vector3 Matrix4::transform(const Matrix4 &mat, const Vector3 &pt) in transform() 213 return Vector3(transformed.x(), transformed.y(), transformed.z()); in transform() 216 Vector3 Matrix4::transform(const Matrix4 &mat, const Vector4 &pt) in transform() 219 return Vector3(transformed.x(), transformed.y(), transformed.z()); in transform()
|
/external/MPAndroidChart/MPChartLib/src/main/java/com/github/mikephil/charting/matrix/ |
D | Vector3.java | 7 public final class Vector3 { class 12 public static final Vector3 ZERO = new Vector3(0, 0, 0); 13 public static final Vector3 UNIT_X = new Vector3(1, 0, 0); 14 public static final Vector3 UNIT_Y = new Vector3(0, 1, 0); 15 public static final Vector3 UNIT_Z = new Vector3(0, 0, 1); 17 public Vector3() { in Vector3() method in Vector3 20 public Vector3(float[] array) in Vector3() method in Vector3 25 public Vector3(float xValue, float yValue, float zValue) { in Vector3() method in Vector3 29 public Vector3(Vector3 other) { in Vector3() method in Vector3 33 public final void add(Vector3 other) { in add() [all …]
|
/external/eigen/unsupported/test/ |
D | EulerAngles.cpp | 39 typedef Matrix<Scalar,3,1> Vector3; in verify_euler() typedef 75 const Vector3 I_ = EulerAnglesType::AlphaAxisVector(); in verify_euler() 76 const Vector3 J_ = EulerAnglesType::BetaAxisVector(); in verify_euler() 77 const Vector3 K_ = EulerAnglesType::GammaAxisVector(); in verify_euler() 177 typedef Matrix<Scalar,3,1> Vector3; in check_singular_cases() typedef 182 check_all_var(Vector3(PI/4, singularBeta, PI/3)); in check_singular_cases() 183 check_all_var(Vector3(PI/4, singularBeta - epsilon, PI/3)); in check_singular_cases() 184 check_all_var(Vector3(PI/4, singularBeta - Scalar(1.5)*epsilon, PI/3)); in check_singular_cases() 185 check_all_var(Vector3(PI/4, singularBeta - 2*epsilon, PI/3)); in check_singular_cases() 186 check_all_var(Vector3(PI*Scalar(0.8), singularBeta - epsilon, Scalar(0.9)*PI)); in check_singular_cases() [all …]
|
/external/eigen/test/ |
D | geo_eulerangles.cpp | 20 typedef Matrix<Scalar,3,1> Vector3; in verify_euler() typedef 23 …Matrix3 m(AngleAxisx(ea[0], Vector3::Unit(i)) * AngleAxisx(ea[1], Vector3::Unit(j)) * AngleAxisx(e… in verify_euler() 24 Vector3 eabis = m.eulerAngles(i, j, k); in verify_euler() 25 …trix3 mbis(AngleAxisx(eabis[0], Vector3::Unit(i)) * AngleAxisx(eabis[1], Vector3::Unit(j)) * Angle… in verify_euler() 62 typedef Matrix<Scalar,3,1> Vector3; in eulerangles() typedef 69 q1 = AngleAxisx(a, Vector3::Random().normalized()); in eulerangles() 73 Vector3 ea = m.eulerAngles(0,1,2); in eulerangles()
|
D | geo_orthomethods.cpp | 23 typedef Matrix<Scalar,3,1> Vector3; in orthomethods_3() typedef 27 Vector3 v0 = Vector3::Random(), in orthomethods_3() 28 v1 = Vector3::Random(), in orthomethods_3() 29 v2 = Vector3::Random(); in orthomethods_3() 36 VERIFY_IS_MUCH_SMALLER_THAN(v1.cross(Vector3::Random()).dot(v1), Scalar(1)); in orthomethods_3() 49 Vector3 vec3 = Vector3::Random(); in orthomethods_3() 56 …VERIFY_IS_MUCH_SMALLER_THAN((mat3.adjoint() * mat3.colwise().cross(Vector3::Random())).diagonal().… in orthomethods_3() 86 typedef Matrix<Scalar,3,1> Vector3; in orthomethods() typedef 104 Vector3 vec3 = Vector3::Random(); in orthomethods()
|
D | geo_transformations.cpp | 31 typedef Matrix<Scalar,3,1> Vector3; in non_projective_only() typedef 38 Vector3 v0 = Vector3::Random(), in non_projective_only() 39 v1 = Vector3::Random(); in non_projective_only() 57 VERIFY_IS_APPROX( (t0 * Vector3(1,0,0)).template head<3>().norm(), v0.x()); in non_projective_only() 96 typedef Matrix<Scalar,3,1> Vector3; in transformations() typedef 107 Vector3 v0 = Vector3::Random(), in transformations() 108 v1 = Vector3::Random(); in transformations() 114 while(v0.norm() < test_precision<Scalar>()) v0 = Vector3::Random(); in transformations() 115 while(v1.norm() < test_precision<Scalar>()) v1 = Vector3::Random(); in transformations() 132 matrot1 = AngleAxisx(Scalar(0.1), Vector3::UnitX()) in transformations() [all …]
|
D | geo_quaternion.cpp | 52 typedef Matrix<Scalar,3,1> Vector3; in quaternion() typedef 63 Vector3 v0 = Vector3::Random(), in quaternion() 64 v1 = Vector3::Random(), in quaternion() 65 v2 = Vector3::Random(), in quaternion() 66 v3 = Vector3::Random(); in quaternion() 190 typedef Matrix<Scalar,3,1> Vector3; in mapQuaternion() typedef 193 Vector3 v0 = Vector3::Random(), in mapQuaternion() 194 v1 = Vector3::Random(); in mapQuaternion()
|
/external/eigen/unsupported/Eigen/src/EulerAngles/ |
D | EulerAngles.h | 113 typedef Matrix<Scalar,3,1> Vector3; /*!< the equivalent 3 dimension vector type */ typedef 118 static Vector3 AlphaAxisVector() { in AlphaAxisVector() 119 const Vector3& u = Vector3::Unit(System::AlphaAxisAbs - 1); in AlphaAxisVector() 124 static Vector3 BetaAxisVector() { in BetaAxisVector() 125 const Vector3& u = Vector3::Unit(System::BetaAxisAbs - 1); in BetaAxisVector() 130 static Vector3 GammaAxisVector() { in GammaAxisVector() 131 const Vector3& u = Vector3::Unit(System::GammaAxisAbs - 1); in GammaAxisVector() 136 Vector3 m_angles; 193 const Vector3& angles() const { return m_angles; } in angles() 195 Vector3& angles() { return m_angles; } in angles()
|
/external/angle/src/common/ |
D | matrix_utils_unittest.cpp | 22 Vector3 axis; 275 Mat4 r = Mat4::Rotate(0.f, Vector3(0.f, 0.f, 1.f)); in TEST() 286 Vector3(1.4951171875000000f, 8.4370708465576172f, 1.8489227294921875f)}); in TEST() 289 Vector3(8.3313980102539062f, 5.8317651748657227f, -5.5201716423034668f)}); in TEST() 292 Vector3(-8.5962724685668945f, 2.4547367095947266f, -3.2461600303649902f)}); in TEST() 295 Vector3(-1.9640445709228516f, -9.6942234039306641f, 9.1921043395996094f)}); in TEST() 298 Vector3(-5.3600544929504395f, -6.4333534240722656f, -5.3734750747680664f)}); in TEST() 301 Vector3(-2.3043875694274902f, -9.8447618484497070f, -0.9124794006347656f)}); in TEST() 304 Vector3(-1.0044975280761719f, -2.5834980010986328f, -0.8451175689697266f)}); in TEST() 307 Vector3(-1.3710060119628906f, -2.5042991638183594f, -9.7572088241577148f)}); in TEST() [all …]
|
D | vector_utils_unittest.cpp | 174 Vector3 vec3(1.0, 2.0, 3.0); in TEST() 197 ASSERT_EQ(Vector3(0.0, 0.0, 1.0), Vector3(1.0, 0.0, 0.0).cross(Vector3(0.0, 1.0, 0.0))); in TEST() 198 ASSERT_EQ(Vector3(-3.0, 6.0, -3.0), Vector3(1.0, 2.0, 3.0).cross(Vector3(4.0, 5.0, 6.0))); in TEST()
|
/external/angle/src/tests/perf_tests/ |
D | InstancingPerf.cpp | 38 Vector3 RandomVector3(RNG *rng) in RandomVector3() 40 return Vector3(rng->randomNegativeOneToOne(), rng->randomNegativeOneToOne(), in RandomVector3() 98 std::vector<Vector3> mTranslateData; 100 std::vector<Vector3> mColorData; 160 Vector3 randVec = RandomVector3(&mRNG); in initializeBenchmark() 169 mColorData.resize(mNumPoints * 4, Vector3(1.0f, 0.0f, 0.0f)); in initializeBenchmark() 185 Vector3 randVec = RandomVector3(&mRNG); in initializeBenchmark() 190 mColorData.resize(mNumPoints, Vector3(1.0f, 0.0f, 0.0f)); in initializeBenchmark() 243 Matrix4 worldMatrix = Matrix4::translate(Vector3(0, 0, -3.0f)); in initializeBenchmark() 244 worldMatrix *= Matrix4::rotate(25.0f, Vector3(0.6f, 1.0f, 0.0f)); in initializeBenchmark() [all …]
|
D | LinkProgramPerfTest.cpp | 124 std::array<Vector3, 6> vertices = {{Vector3(-1.0f, 1.0f, 0.5f), Vector3(-1.0f, -1.0f, 0.5f), in initializeBenchmark() 125 Vector3(1.0f, -1.0f, 0.5f), Vector3(-1.0f, 1.0f, 0.5f), in initializeBenchmark() 126 Vector3(1.0f, -1.0f, 0.5f), Vector3(1.0f, 1.0f, 0.5f)}}; in initializeBenchmark() 130 glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(Vector3), vertices.data(), in initializeBenchmark()
|
D | ProgramPipelineObjectPerfTest.cpp | 142 const std::array<Vector3, 6> kQuadVertices = {{ in drawBenchmark() 143 Vector3(-1.0f, 1.0f, 0.5f), in drawBenchmark() 144 Vector3(-1.0f, -1.0f, 0.5f), in drawBenchmark() 145 Vector3(1.0f, -1.0f, 0.5f), in drawBenchmark() 146 Vector3(-1.0f, 1.0f, 0.5f), in drawBenchmark()
|
/external/angle/src/tests/gl_tests/ |
D | ShaderAlgorithmTest.cpp | 63 std::vector<Vector3> positions{Vector3(-1.0f, -1.0f, 0.0f), Vector3(-1.0f, 1.0f, 0.0f), in TEST_P() 64 Vector3(1.0f, 1.0f, 0.0f), Vector3(1.0f, -1.0f, 0.0f)}; in TEST_P() 86 std::vector<Vector3> unitcoords; in TEST_P() 105 unitcoords[vtx] = Vector3(sx, sy, 0.33f * sx + 0.5f * sy); in TEST_P()
|
D | ClipDistanceTest.cpp | 2197 const std::array<Vector3, kNumVertices> quadVertices = { in TEST_P() 2198 {Vector3(-1.0f, 1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(1.0f, 1.0f, 0.0f), in TEST_P() 2199 Vector3(1.0f, 1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(1.0f, -1.0f, 0.0f), in TEST_P() 2200 Vector3(1.0f, -1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(-1.0f, -1.0f, 0.0f), in TEST_P() 2201 Vector3(-1.0f, -1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(-1.0f, 1.0f, 0.0f)}}; in TEST_P() 2449 const std::array<Vector3, kNumVertices> quadVertices = { in TEST_P() 2450 {Vector3(-0.5f, 0.5f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(0.5f, 0.5f, 0.0f), in TEST_P() 2451 Vector3(0.5f, 0.5f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(0.5f, -0.5f, 0.0f), in TEST_P() 2452 Vector3(0.5f, -0.5f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(-0.5f, -0.5f, 0.0f), in TEST_P() 2453 Vector3(-0.5f, -0.5f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(-0.5f, 0.5f, 0.0f)}}; in TEST_P() [all …]
|
/external/angle/samples/simple_instancing/ |
D | SimpleInstancing.cpp | 94 mVertices.push_back(Vector3(-quadRadius, quadRadius, 0.0f)); in initialize() 95 mVertices.push_back(Vector3(-quadRadius, -quadRadius, 0.0f)); in initialize() 96 mVertices.push_back(Vector3(quadRadius, -quadRadius, 0.0f)); in initialize() 97 mVertices.push_back(Vector3(quadRadius, quadRadius, 0.0f)); in initialize() 116 mInstances.push_back(Vector3(x, y, 0.0f)); in initialize() 193 std::vector<Vector3> mVertices; 195 std::vector<Vector3> mInstances;
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | kernel_mapping_scheme.h | 49 TilingScheme(Vector3 dims_in_elems, Vector3 tile_sizes, Vector3 num_threads, in TilingScheme() 88 Vector3 GetDimsInBlocks() const { in GetDimsInBlocks() 138 const Vector3 dims_in_elems_; 141 const Vector3 tile_sizes_; 144 const Vector3 num_threads_;
|
/external/angle/src/tests/gl_tests/gles1/ |
D | CurrentNormalTest.cpp | 38 const angle::Vector3 kUp(0.0f, 0.0f, 1.0f); in TEST_P() 39 angle::Vector3 actualNormal; in TEST_P() 51 angle::Vector3 actualNormal; in TEST_P() 55 EXPECT_EQ(angle::Vector3(0.1f, 0.2f, 0.3f), actualNormal); in TEST_P()
|
/external/eigen/Eigen/src/Geometry/ |
D | AngleAxis.h | 61 typedef Matrix<Scalar,3,1> Vector3; 66 Vector3 m_axis; 96 EIGEN_DEVICE_FUNC const Vector3& axis() const { return m_axis; } 101 EIGEN_DEVICE_FUNC Vector3& axis() { return m_axis; } 145 …EIGEN_DEVICE_FUNC static inline const AngleAxis Identity() { return AngleAxis(Scalar(0), Vector3::… 223 Vector3 sin_axis = sin(m_angle) * m_axis; 225 Vector3 cos1_axis = (Scalar(1)-c) * m_axis;
|
/external/angle/src/tests/test_utils/ |
D | ANGLETest.cpp | 88 const std::array<Vector3, 6> kQuadVertices = {{ 89 Vector3(-1.0f, 1.0f, 0.5f), 90 Vector3(-1.0f, -1.0f, 0.5f), 91 Vector3(1.0f, -1.0f, 0.5f), 92 Vector3(-1.0f, 1.0f, 0.5f), 93 Vector3(1.0f, -1.0f, 0.5f), 94 Vector3(1.0f, 1.0f, 0.5f), 97 const std::array<Vector3, 4> kIndexedQuadVertices = {{ 98 Vector3(-1.0f, 1.0f, 0.5f), 99 Vector3(-1.0f, -1.0f, 0.5f), [all …]
|
/external/rust/crates/glam/src/features/ |
D | impl_mint.rs | 54 impl From<mint::Vector3<$t>> for $vec3 { 55 fn from(v: mint::Vector3<$t>) -> Self { 60 impl From<$vec3> for mint::Vector3<$t> { 71 type MintType = mint::Vector3<$t>; 111 v: mint::Vector3 { 253 impl From<mint::Vector3<f32>> for Vec3A { 254 fn from(v: mint::Vector3<f32>) -> Self { in from() 259 impl From<Vec3A> for mint::Vector3<f32> { implementation 270 type MintType = mint::Vector3<f32>; 358 let m = mint::Vector3 { [all …]
|
/external/angle/samples/multi_window/ |
D | MultiWindow.cpp | 126 Matrix4 modelMatrix = Matrix4::translate(Vector3(midX, midY, 0.0f)) * in draw() 127 Matrix4::rotate(mRotation, Vector3(0.0f, 0.0f, 1.0f)) * in draw() 128 Matrix4::translate(Vector3(-midX, -midY, 0.0f)); in draw() 145 Vector3 vertices[] = { in draw()
|