/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
D | Plane.java | 64 protected Vector3f normal = new Vector3f(); field in Plane 87 public Plane(Vector3f normal, float constant) { in Plane() argument 88 if (normal == null) { in Plane() 92 this.normal.set(normal); in Plane() 102 public void setNormal(Vector3f normal) { in setNormal() argument 103 if (normal == null) { in setNormal() 106 this.normal.set(normal); in setNormal() 114 this.normal.set(x,y,z); in setNormal() 123 return normal; in getNormal() 149 float t = (constant - normal.dot(point)) / normal.dot(normal); in getClosestPoint() [all …]
|
D | Triangle.java | 55 private transient Vector3f normal; field in Triangle 186 if (normal == null) { in calculateNormal() 187 normal = new Vector3f(pointb); in calculateNormal() 189 normal.set(pointb); in calculateNormal() 191 …normal.subtractLocal(pointa).crossLocal(pointc.x - pointa.x, pointc.y - pointa.y, pointc.z - point… in calculateNormal() 192 normal.normalizeLocal(); in calculateNormal() 221 if (normal == null) { in getNormal() 224 return normal; in getNormal() 231 public void setNormal(Vector3f normal) { in setNormal() argument 232 this.normal = normal; in setNormal()
|
/external/eigen/Eigen/src/Eigen2Support/Geometry/ |
D | Hyperplane.h | 59 normal() = n; in Hyperplane() 70 normal() = n; in Hyperplane() 80 result.normal() = (p1 - p0).unitOrthogonal(); in Through() 81 result.offset() = -result.normal().eigen2_dot(p0); in Through() 92 result.normal() = (p2 - p0).cross(p1 - p0).normalized(); in Through() 93 result.offset() = -result.normal().eigen2_dot(p0); in Through() 104 normal() = parametrized.direction().unitOrthogonal(); in Hyperplane() 105 offset() = -normal().eigen2_dot(parametrized.origin()); in Hyperplane() 116 m_coeffs /= normal().norm(); in normalize() 122 …inline Scalar signedDistance(const VectorType& p) const { return p.eigen2_dot(normal()) + offset()… in signedDistance() [all …]
|
/external/eigen/Eigen/src/Geometry/ |
D | Hyperplane.h | 70 normal() = n; in Hyperplane() 81 normal() = n; in Hyperplane() 91 result.normal() = (p1 - p0).unitOrthogonal(); in Through() 92 result.offset() = -p0.dot(result.normal()); in Through() 103 result.normal() = (p2 - p0).cross(p1 - p0).normalized(); in Through() 104 result.offset() = -p0.dot(result.normal()); in Through() 115 normal() = parametrized.direction().unitOrthogonal(); in Hyperplane() 116 offset() = -parametrized.origin().dot(normal()); in Hyperplane() 127 m_coeffs /= normal().norm(); in normalize() 133 inline Scalar signedDistance(const VectorType& p) const { return normal().dot(p) + offset(); } in signedDistance() [all …]
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/ |
D | TerrainPatch.java | 324 …private void setInBuffer(Mesh mesh, int index, Vector3f normal, Vector3f tangent, Vector3f binorma… in setInBuffer() argument 328 BufferUtils.setInBuffer(normal, (FloatBuffer)NB.getData(), index); in setInBuffer() 370 Vector3f normal = new Vector3f(); in fixNormalEdges() local 385 …ageNormalsTangents(null, rootPoint, leftPoint, bottomPoint, rightPoint, normal, tangent, binormal… in fixNormalEdges() 386 setInBuffer(this.getMesh(), s, normal, tangent, binormal); in fixNormalEdges() local 387 setInBuffer(right.getMesh(), 0, normal, tangent, binormal); in fixNormalEdges() local 391 …eNormalsTangents(topPoint, rootPoint, leftPoint, bottomPoint, rightPoint,normal, tangent, binormal… in fixNormalEdges() 392 setInBuffer(this.getMesh(), s, normal, tangent, binormal); in fixNormalEdges() local 393 setInBuffer(right.getMesh(), 0, normal, tangent, binormal); in fixNormalEdges() local 394 setInBuffer(top.getMesh(), (s+1)*(s+1)-1, normal, tangent, binormal); in fixNormalEdges() [all …]
|
/external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Light/ |
D | GBuf.frag | 56 vec3 normal = (normalHeight.xyz * vec3(2.0) - vec3(1.0)); 57 normal.y = -normal.y; 59 normal = tbnMat * normal; 61 vec3 normal = vNormal; 63 normal = normalize(normal); 83 gl_FragData[1] = vec4(encodeNormal(normal), 0.0, 0.0);
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-1.0/ |
D | 3d-raytrace.js | 128 var normal = cross(edge1, edge2); 129 if (Math.abs(normal[0]) > Math.abs(normal[1])) 130 if (Math.abs(normal[0]) > Math.abs(normal[2])) 135 if (Math.abs(normal[1]) > Math.abs(normal[2])) 146 this.normal = normalise(normal); 147 this.nu = normal[u] / normal[this.axis]; 148 this.nv = normal[v] / normal[this.axis]; 149 this.nd = dot(normal, p1) / normal[this.axis]; 203 var normal = closest.normal; 205 if (dot(dir, normal) > 0) [all …]
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
D | 3d-raytrace.js | 128 var normal = cross(edge1, edge2); 129 if (Math.abs(normal[0]) > Math.abs(normal[1])) 130 if (Math.abs(normal[0]) > Math.abs(normal[2])) 135 if (Math.abs(normal[1]) > Math.abs(normal[2])) 146 this.normal = normalise(normal); 147 this.nu = normal[u] / normal[this.axis]; 148 this.nv = normal[v] / normal[this.axis]; 149 this.nd = dot(normal, p1) / normal[this.axis]; 203 var normal = closest.normal; 205 if (dot(dir, normal) > 0) [all …]
|
/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
D | 3d-raytrace.js | 128 var normal = cross(edge1, edge2); 129 if (Math.abs(normal[0]) > Math.abs(normal[1])) 130 if (Math.abs(normal[0]) > Math.abs(normal[2])) 135 if (Math.abs(normal[1]) > Math.abs(normal[2])) 146 this.normal = normalise(normal); 147 this.nu = normal[u] / normal[this.axis]; 148 this.nv = normal[v] / normal[this.axis]; 149 this.nd = dot(normal, p1) / normal[this.axis]; 203 var normal = closest.normal; 205 if (dot(dir, normal) > 0) [all …]
|
/external/jmonkeyengine/engine/src/terrain/Common/MatDefs/Terrain/ |
D | TerrainLighting.frag | 259 vec3 normal = vec3(0,0,1); 273 normal += n * alphaBlend.r; 278 normal += n * alphaBlend.g; 283 normal += n * alphaBlend.b; 288 normal += n * alphaBlend.a; 294 normal += n * alphaBlend1.r; 299 normal += n * alphaBlend1.g; 304 normal += n * alphaBlend1.b; 309 normal += n * alphaBlend1.a; 316 normal += n * alphaBlend2.r; [all …]
|
/external/chromium_org/third_party/JSON/JSON-2.59/t/ |
D | 09_pc_extra_number.t | 19 is($obj->{foo}, 0, "normal 0"); 23 is($obj->{foo}, 0.1, "normal 0.1"); 28 is($obj->{foo}, 10, "normal 10"); 32 is($obj->{foo}, -10, "normal -10"); 37 is($obj->{foo},0, "normal 0"); 38 is($obj->{bar},0.1,"normal 0.1");
|
/external/skia/src/core/ |
D | SkStrokerPriv.cpp | 15 const SkVector& normal, const SkPoint& stop, in ButtCapper() argument 22 const SkVector& normal, const SkPoint& stop, in RoundCapper() argument 27 SkScalar nx = normal.fX; in RoundCapper() 28 SkScalar ny = normal.fY; in RoundCapper() 41 const SkVector& normal, const SkPoint& stop, in SquareCapper() argument 45 normal.rotateCW(¶llel); in SquareCapper() 49 path->setLastPt(pivot.fX + normal.fX + parallel.fX, pivot.fY + normal.fY + parallel.fY); in SquareCapper() 50 path->lineTo(pivot.fX - normal.fX + parallel.fX, pivot.fY - normal.fY + parallel.fY); in SquareCapper() 54 path->lineTo(pivot.fX + normal.fX + parallel.fX, pivot.fY + normal.fY + parallel.fY); in SquareCapper() 55 path->lineTo(pivot.fX - normal.fX + parallel.fX, pivot.fY - normal.fY + parallel.fY); in SquareCapper()
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkStrokerPriv.cpp | 15 const SkVector& normal, const SkPoint& stop, in ButtCapper() argument 22 const SkVector& normal, const SkPoint& stop, in RoundCapper() argument 27 SkScalar nx = normal.fX; in RoundCapper() 28 SkScalar ny = normal.fY; in RoundCapper() 41 const SkVector& normal, const SkPoint& stop, in SquareCapper() argument 45 normal.rotateCW(¶llel); in SquareCapper() 49 path->setLastPt(pivot.fX + normal.fX + parallel.fX, pivot.fY + normal.fY + parallel.fY); in SquareCapper() 50 path->lineTo(pivot.fX - normal.fX + parallel.fX, pivot.fY - normal.fY + parallel.fY); in SquareCapper() 54 path->lineTo(pivot.fX + normal.fX + parallel.fX, pivot.fY + normal.fY + parallel.fY); in SquareCapper() 55 path->lineTo(pivot.fX - normal.fX + parallel.fX, pivot.fY - normal.fY + parallel.fY); in SquareCapper()
|
/external/chromium_org/third_party/sqlite/src/test/ |
D | exclusive.test | 41 } [list normal normal exclusive] 56 pragma locking_mode = normal; 58 } {normal} 65 } [list normal normal exclusive] 70 } {normal} 77 } [list normal normal exclusive] 91 pragma main.locking_mode = normal; 98 } [list normal exclusive exclusive] 113 } {normal exclusive exclusive} 116 pragma aux.locking_mode = normal; [all …]
|
/external/mesa3d/src/mesa/tnl/ |
D | t_vb_normals.c | 43 GLvector4f normal; member 71 &store->normal ); /* resulting normals */ in run_normal_stage() 74 store->normal.stride = 4 * sizeof(GLfloat); in run_normal_stage() 77 store->normal.stride = 0; in run_normal_stage() 80 VB->AttribPtr[_TNL_ATTRIB_NORMAL] = &store->normal; in run_normal_stage() 159 _mesa_vector4f_alloc( &store->normal, 0, tnl->vb.Size, 32 ); in alloc_normal_data() 172 _mesa_vector4f_free( &store->normal ); in free_normal_data()
|
D | t_vb_texgen.c | 101 const GLvector4f *normal, in build_m3() argument 107 const GLfloat *norm = normal->start; in build_m3() 110 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m3() 128 const GLvector4f *normal, in build_m2() argument 135 GLfloat *norm = normal->start; in build_m2() 138 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m2() 158 const GLvector4f *normal, 177 const GLvector4f *normal, in build_f3() argument 184 GLfloat *norm = normal->start; in build_f3() 197 STRIDE_F(norm, normal->stride); in build_f3() [all …]
|
/external/chromium_org/third_party/mesa/src/src/mesa/tnl/ |
D | t_vb_normals.c | 43 GLvector4f normal; member 71 &store->normal ); /* resulting normals */ in run_normal_stage() 74 store->normal.stride = 4 * sizeof(GLfloat); in run_normal_stage() 77 store->normal.stride = 0; in run_normal_stage() 80 VB->AttribPtr[_TNL_ATTRIB_NORMAL] = &store->normal; in run_normal_stage() 159 _mesa_vector4f_alloc( &store->normal, 0, tnl->vb.Size, 32 ); in alloc_normal_data() 172 _mesa_vector4f_free( &store->normal ); in free_normal_data()
|
D | t_vb_texgen.c | 101 const GLvector4f *normal, in build_m3() argument 107 const GLfloat *norm = normal->start; in build_m3() 110 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m3() 128 const GLvector4f *normal, in build_m2() argument 135 GLfloat *norm = normal->start; in build_m2() 138 for (i=0;i<count;i++,STRIDE_F(coord,stride),STRIDE_F(norm,normal->stride)) { in build_m2() 158 const GLvector4f *normal, 177 const GLvector4f *normal, in build_f3() argument 184 GLfloat *norm = normal->start; in build_f3() 197 STRIDE_F(norm, normal->stride); in build_f3() [all …]
|
D | t_vb_lighttmp.h | 60 const GLfloat *normal = (GLfloat *)VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; in TAG() local 89 for (j = 0; j < nr; j++,STRIDE_F(vertex,vstride),STRIDE_F(normal,nstride)) { in TAG() 160 n_dot_VP = DOT3( normal, VP ); in TAG() 204 n_dot_h = correction * DOT3(normal, h); in TAG() 243 const GLfloat *normal = (GLfloat *)VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; in TAG() local 267 for (j = 0; j < nr; j++,STRIDE_F(vertex,vstride),STRIDE_F(normal,nstride)) { in TAG() 338 n_dot_VP = DOT3( normal, VP ); in TAG() 383 n_dot_h = correction * DOT3(normal, h); in TAG() 418 const GLfloat *normal = (GLfloat *)VB->AttribPtr[_TNL_ATTRIB_NORMAL]->data; in TAG() local 452 for (j = 0; j < nr; j++, STRIDE_F(normal,nstride)) { in TAG() [all …]
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | SolidSurfaceComponent.java | 75 public void addSurface(Vector2 startPoint, Vector2 endPoint, Vector2 normal) { in addSurface() argument 78 mNormals.add(normal); in addSurface() 95 Vector2 normal = mNormal; in update() local 118 normal.set(normals.get(x)); in update() 120 normal.flipHorizontal(0); in update() 124 normal.flipVertical(0); in update() 127 collision.addTemporarySurface(start, end, normal, parentObject); in update()
|
/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/ |
D | Skinning.glsllib | 11 void Skinning_Compute(inout vec4 position, inout vec4 normal){ 21 newNormal += weight.x * (skinMat * normal); 27 normal = newNormal; 32 void Skinning_Compute(inout vec4 position, inout vec4 normal){ 33 // skinning disabled, leave position and normal unaltered
|
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/Water/ |
D | Water.frag | 46 // Strength of displacement along normal. 47 // Strength of displacement along normal. 110 // - normal - normalized normal vector 112 float fresnelTerm(in vec3 normal,in vec3 eyeVec){ 113 float angle = 1.0 - saturate(dot(normal, eyeVec)); 149 // Find normal of water surface 156 vec3 normal = myNormal*-1.0; 157 float fresnel = fresnelTerm(normal, eyeVecNorm); 190 vec3 mirrorEye = (2.0 * dot(eyeVecNorm, normal) * normal - eyeVecNorm); 289 // Find normal of water surface [all …]
|
D | Water15.frag | 51 // Strength of displacement along normal. 106 // - normal - normalized normal vector 108 float fresnelTerm(in vec3 normal,in vec3 eyeVec){ 109 float angle = 1.0 - max(0.0, dot(normal, eyeVec)); 145 // Find normal of water surface 152 vec3 normal = myNormal*-1.0; 153 float fresnel = fresnelTerm(normal, eyeVecNorm); 192 vec3 mirrorEye = (2.0 * dot(eyeVecNorm, normal) * normal - eyeVecNorm); 290 // Find normal of water surface 297 vec3 normal = vec3(0.0); [all …]
|
/external/chromium_org/cc/animation/ |
D | transform_operation.cc | 300 gfx::Vector3dF normal = axis; in BoundingBoxForArc() local 301 normal.Scale(1.f / normal.Length()); in BoundingBoxForArc() 307 origin + gfx::ScaleVector3d(normal, gfx::DotProduct(to_point, normal)); in BoundingBoxForArc() 318 gfx::Vector3dF v2 = gfx::CrossProduct(normal, v1); in BoundingBoxForArc() 325 px - gfx::ScaleVector3d(normal, gfx::DotProduct(to_px, normal)); in BoundingBoxForArc() 331 pz - ScaleVector3d(normal, gfx::DotProduct(to_pz, normal)); in BoundingBoxForArc() 337 candidates[0] = atan2(normal.y(), normal.x() * normal.z()) + phi_x; in BoundingBoxForArc() 339 candidates[2] = atan2(-normal.z(), normal.x() * normal.y()) + phi_x; in BoundingBoxForArc() 341 candidates[4] = atan2(normal.y(), -normal.x() * normal.z()) + phi_z; in BoundingBoxForArc()
|
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/ |
D | OCTTriangle.java | 74 Vector3f normal = new Vector3f(pointb); in getNormal() local 75 … normal.subtractLocal(pointa).crossLocal(pointc.x-pointa.x, pointc.y-pointa.y, pointc.z-pointa.z); in getNormal() 76 normal.normalizeLocal(); in getNormal() 77 return normal; in getNormal()
|