/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/angle/src/tests/gl_tests/ |
D | ClipDistanceTest.cpp | 929 const std::array<Vector3, kNumVertices> quadVertices = { in TEST_P() 930 {Vector3(-1.0f, 1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(1.0f, 1.0f, 0.0f), in TEST_P() 931 Vector3(1.0f, 1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(1.0f, -1.0f, 0.0f), in TEST_P() 932 Vector3(1.0f, -1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(-1.0f, -1.0f, 0.0f), in TEST_P() 933 Vector3(-1.0f, -1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(-1.0f, 1.0f, 0.0f)}}; in TEST_P() 1030 const std::array<Vector3, kNumVertices> quadVertices = { in TEST_P() 1031 {Vector3(-1.0f, 1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(1.0f, 1.0f, 0.0f), in TEST_P() 1032 Vector3(1.0f, 1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(1.0f, -1.0f, 0.0f), in TEST_P() 1033 Vector3(1.0f, -1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(-1.0f, -1.0f, 0.0f), in TEST_P() 1034 Vector3(-1.0f, -1.0f, 0.0f), Vector3(0.0f, 0.0f, 0.0f), Vector3(-1.0f, 1.0f, 0.0f)}}; in TEST_P() [all …]
|
D | SimpleOperationTest.cpp | 359 std::vector<Vector3> vertices = {{-1.0f, -1.0f, 0.0f}, {1.0f, 1.0f, 0.0f}}; in TEST_P() 396 std::vector<Vector3> vertices(kOffset); in TEST_P() 397 Vector3 vector1{-1.0f, -1.0f, 0.0f}; in TEST_P() 398 Vector3 vector2{1.0f, 1.0f, 0.0f}; in TEST_P() 438 std::vector<Vector3>{{-1.0f, -1.0f, 0.0f}, {0.0f, 0.0f, 0.0f}, {1.0f, -1.0f, 0.0f}}; in TEST_P() 546 const std::vector<Vector3> mVertices = {{0.0f, 0.0f, 0.0f}, 942 std::vector<Vector3> vertices; in testDrawElementsLineLoopUsingClientSideMemory() 1018 const Vector3 posX(1, 0, 0); in TEST_P() 1019 const Vector3 negX(-1, 0, 0); in TEST_P() 1020 const Vector3 posY(0, 1, 0); in TEST_P() [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 | 51 typedef Matrix<Scalar,3,1> Vector3; in quaternion() typedef 62 Vector3 v0 = Vector3::Random(), in quaternion() 63 v1 = Vector3::Random(), in quaternion() 64 v2 = Vector3::Random(), in quaternion() 65 v3 = Vector3::Random(); in quaternion() 182 typedef Matrix<Scalar,3,1> Vector3; in mapQuaternion() typedef 185 Vector3 v0 = Vector3::Random(), in mapQuaternion() 186 v1 = Vector3::Random(); in mapQuaternion()
|
/external/eigen/unsupported/Eigen/src/EulerAngles/ |
D | EulerAngles.h | 121 typedef Matrix<Scalar,3,1> Vector3; /*!< the equivalent 3 dimension vector type */ typedef 126 static Vector3 AlphaAxisVector() { in AlphaAxisVector() 127 const Vector3& u = Vector3::Unit(System::AlphaAxisAbs - 1); in AlphaAxisVector() 132 static Vector3 BetaAxisVector() { in BetaAxisVector() 133 const Vector3& u = Vector3::Unit(System::BetaAxisAbs - 1); in BetaAxisVector() 138 static Vector3 GammaAxisVector() { in GammaAxisVector() 139 const Vector3& u = Vector3::Unit(System::GammaAxisAbs - 1); in GammaAxisVector() 144 Vector3 m_angles; 212 const Vector3& angles() const { return m_angles; } in angles() 214 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 | 116 std::array<Vector3, 6> vertices = {{Vector3(-1.0f, 1.0f, 0.5f), Vector3(-1.0f, -1.0f, 0.5f), in initializeBenchmark() 117 Vector3(1.0f, -1.0f, 0.5f), Vector3(-1.0f, 1.0f, 0.5f), in initializeBenchmark() 118 Vector3(1.0f, -1.0f, 0.5f), Vector3(1.0f, 1.0f, 0.5f)}}; in initializeBenchmark() 122 glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(Vector3), vertices.data(), in initializeBenchmark()
|
/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/eigen/unsupported/test/ |
D | EulerAngles.cpp | 22 typedef Matrix<Scalar,3,1> Vector3; in verify_euler_ranged() typedef 72 const Vector3 I = EulerAnglesType::AlphaAxisVector(); in verify_euler_ranged() 73 const Vector3 J = EulerAnglesType::BetaAxisVector(); in verify_euler_ranged() 74 const Vector3 K = EulerAnglesType::GammaAxisVector(); in verify_euler_ranged() 79 …Vector3 eabis = EulerAnglesType(m, positiveRangeAlpha, positiveRangeBeta, positiveRangeGamma).angl… in verify_euler_ranged() 86 Vector3 eabis2 = m.eulerAngles(i, j, k); in verify_euler_ranged() 158 typedef Matrix<Scalar,3,1> Vector3; in eulerangles() typedef 165 q1 = AngleAxisType(a, Vector3::Random().normalized()); in eulerangles() 169 Vector3 ea = m.eulerAngles(0,1,2); in eulerangles()
|
/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()
|
D | MatrixMultTest.cpp | 54 angle::Mat4 testMatrix = angle::Mat4::Translate(angle::Vector3(1.0f, 0.0f, 0.0f)); in TEST_P() 67 EXPECT_EQ(angle::Mat4::Translate(angle::Vector3(2.0f, 0.0f, 0.0f)), outputMatrix); in TEST_P()
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | cert-mem57-cpp.cpp | 17 struct alignas(128) Vector3 { struct 20 return std::aligned_alloc(alignof(Vector3), nbytes); in operator new() argument 35 auto *V3 = new Vector3; in f() argument
|
/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 | 105 const std::array<Vector3, 6> kQuadVertices = {{ 106 Vector3(-1.0f, 1.0f, 0.5f), 107 Vector3(-1.0f, -1.0f, 0.5f), 108 Vector3(1.0f, -1.0f, 0.5f), 109 Vector3(-1.0f, 1.0f, 0.5f), 110 Vector3(1.0f, -1.0f, 0.5f), 111 Vector3(1.0f, 1.0f, 0.5f), 114 const std::array<Vector3, 4> kIndexedQuadVertices = {{ 115 Vector3(-1.0f, 1.0f, 0.5f), 116 Vector3(-1.0f, -1.0f, 0.5f), [all …]
|
/external/angle/samples/torus_lighting/ |
D | TorusLightingES2.cpp | 84 Matrix4 modelMatrix = Matrix4::translate(angle::Vector3(0, 0, -5)) * in draw() 85 Matrix4::rotate(mAngle, angle::Vector3(0.0f, 1.0f, 0.0f)) * in draw() 86 Matrix4::rotate(mAngle * 0.25f, angle::Vector3(1.0f, 0.0f, 0.0f)); in draw()
|
/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()
|
/external/angle/src/libANGLE/ |
D | GLES1State.h | 68 angle::Vector3 direction = {0.0f, 0.0f, -1.0f}; 129 angle::Vector3 pointDistanceAttenuation = {1.0f, 0.0f, 0.0f}; 163 void setCurrentNormal(const angle::Vector3 &normal); 164 const angle::Vector3 &getCurrentNormal() const; 291 angle::Vector3 mCurrentNormal;
|