/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/quake/quake/src/QW/client/ |
D | mathlib.c | 34 void ProjectPointOnPlane( vec3_t dst, const vec3_t p, const vec3_t normal ) in ProjectPointOnPlane() argument 40 inv_denom = 1.0F / DotProduct( normal, normal ); in ProjectPointOnPlane() 42 d = DotProduct( normal, p ) * inv_denom; in ProjectPointOnPlane() 44 n[0] = normal[0] * inv_denom; in ProjectPointOnPlane() 45 n[1] = normal[1] * inv_denom; in ProjectPointOnPlane() 46 n[2] = normal[2] * inv_denom; in ProjectPointOnPlane() 209 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2]; in BoxOnPlaneSide() 210 dist2 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2]; in BoxOnPlaneSide() 213 dist1 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2]; in BoxOnPlaneSide() 214 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2]; in BoxOnPlaneSide() [all …]
|
D | gl_test.c | 29 vec3_t normal; member 69 vec3_t normal; in Test_Spawn() local 87 d = DotProduct (incoming, plane->normal); in Test_Spawn() 89 VectorMA (p->reflect, d*2, plane->normal, p->reflect); in Test_Spawn() 92 VectorCopy (plane->normal, p->normal); in Test_Spawn() 94 CrossProduct (incoming, p->normal, p->up); in Test_Spawn() 96 CrossProduct (p->up, p->normal, p->right); in Test_Spawn()
|
D | r_bsp.c | 175 DotProduct(r_entorigin, splitplane->normal); in R_RecursiveClipBPoly() 176 tplane.normal[0] = DotProduct (entity_rotation[0], splitplane->normal); in R_RecursiveClipBPoly() 177 tplane.normal[1] = DotProduct (entity_rotation[1], splitplane->normal); in R_RecursiveClipBPoly() 178 tplane.normal[2] = DotProduct (entity_rotation[2], splitplane->normal); in R_RecursiveClipBPoly() 188 lastdist = DotProduct (plastvert->position, tplane.normal) - in R_RecursiveClipBPoly() 198 dist = DotProduct (pvert->position, tplane.normal) - tplane.dist; in R_RecursiveClipBPoly() 350 dot = DotProduct (modelorg, pplane->normal) - pplane->dist; in R_DrawSolidClippedSubmodelPolygons() 428 dot = DotProduct (modelorg, pplane->normal) - pplane->dist; in R_DrawSubmodelPolygons() 483 d = DotProduct (rejectpt, view_clipplanes[i].normal); in R_RecursiveWorldNode() 493 d = DotProduct (acceptpt, view_clipplanes[i].normal); in R_RecursiveWorldNode() [all …]
|
/external/quake/quake/src/WinQuake/ |
D | mathlib.cpp | 34 void ProjectPointOnPlane( vec3_t dst, const vec3_t p, const vec3_t normal ) in ProjectPointOnPlane() argument 40 inv_denom = 1.0F / DotProduct( normal, normal ); in ProjectPointOnPlane() 42 d = DotProduct( normal, p ) * inv_denom; in ProjectPointOnPlane() 44 n[0] = normal[0] * inv_denom; in ProjectPointOnPlane() 45 n[1] = normal[1] * inv_denom; in ProjectPointOnPlane() 46 n[2] = normal[2] * inv_denom; in ProjectPointOnPlane() 211 dist1 = p->normal[0]*emaxs[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2]; in BoxOnPlaneSide() 212 dist2 = p->normal[0]*emins[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2]; in BoxOnPlaneSide() 215 dist1 = p->normal[0]*emins[0] + p->normal[1]*emaxs[1] + p->normal[2]*emaxs[2]; in BoxOnPlaneSide() 216 dist2 = p->normal[0]*emaxs[0] + p->normal[1]*emins[1] + p->normal[2]*emins[2]; in BoxOnPlaneSide() [all …]
|
D | gl_test.cpp | 29 vec3_t normal; member 69 vec3_t normal; in Test_Spawn() local 87 d = DotProduct (incoming, plane->normal); in Test_Spawn() 89 VectorMA (p->reflect, d*2, plane->normal, p->reflect); in Test_Spawn() 92 VectorCopy (plane->normal, p->normal); in Test_Spawn() 94 CrossProduct (incoming, p->normal, p->up); in Test_Spawn() 96 CrossProduct (p->up, p->normal, p->right); in Test_Spawn()
|
D | r_bsp.cpp | 175 DotProduct(r_entorigin, splitplane->normal); in R_RecursiveClipBPoly() 176 tplane.normal[0] = DotProduct (entity_rotation[0], splitplane->normal); in R_RecursiveClipBPoly() 177 tplane.normal[1] = DotProduct (entity_rotation[1], splitplane->normal); in R_RecursiveClipBPoly() 178 tplane.normal[2] = DotProduct (entity_rotation[2], splitplane->normal); in R_RecursiveClipBPoly() 188 lastdist = DotProduct (plastvert->position, tplane.normal) - in R_RecursiveClipBPoly() 198 dist = DotProduct (pvert->position, tplane.normal) - tplane.dist; in R_RecursiveClipBPoly() 350 dot = DotProduct (modelorg, pplane->normal) - pplane->dist; in R_DrawSolidClippedSubmodelPolygons() 428 dot = DotProduct (modelorg, pplane->normal) - pplane->dist; in R_DrawSubmodelPolygons() 483 d = DotProduct (rejectpt, view_clipplanes[i].normal); in R_RecursiveWorldNode() 493 d = DotProduct (acceptpt, view_clipplanes[i].normal); in R_RecursiveWorldNode() [all …]
|
/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/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/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/webkit/Source/WebCore/css/ |
D | mathml.css | 99 …normal"], mstyle[mathvariant="normal"], mo[mathvariant="normal"], mn[mathvariant="normal"], mi[mat… 100 font-style: normal; 101 font-weight: normal; 105 font-style: normal; 111 font-weight: normal; 123 …normal"], mstyle[mathsize="normal"], mo[mathsize="normal"], mn[mathsize="normal"], mi[mathsize="no…
|
/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);
|
D | Lighting.frag | 146 //parallax map is stored in the alpha channel of the normal map 154 //parallax map is stored in the alpha channel of the normal map 214 vec3 normal = (normalHeight.xyz * vec3(2.0) - vec3(1.0)); 216 normal.z = sqrt(1.0 - (normal.x * normal.x) - (normal.y * normal.y)); 218 //normal.y = -normal.y; 220 vec3 normal = vNormal; 222 normal = normalize(normal); 258 vec2 light = computeLighting(normal, viewDir, lightDir.xyz) * spotFallOff;
|
/external/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/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/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()
|
D | SkStroke.cpp | 42 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal() argument 47 unitNormal->scale(radius, normal); in set_normal_unitnormal() 53 SkVector* normal, SkVector* unitNormal) { in set_normal_unitnormal() argument 58 unitNormal->scale(radius, normal); in set_normal_unitnormal() 98 void preJoinTo(const SkPoint&, SkVector* normal, SkVector* unitNormal, 100 void postJoinTo(const SkPoint&, const SkVector& normal, 103 void line_to(const SkPoint& currPt, const SkVector& normal); 116 void SkPathStroker::preJoinTo(const SkPoint& currPt, SkVector* normal, in preJoinTo() argument 123 SkAssertResult(set_normal_unitnormal(fPrevPt, currPt, fRadius, normal, in preJoinTo() 127 fFirstNormal = *normal; in preJoinTo() [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/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()
|
/external/jmonkeyengine/engine/src/core/com/jme3/util/ |
D | TangentBinormalGenerator.java | 69 public final Vector3f normal; field in TangentBinormalGenerator.VertexInfo 72 public VertexInfo(Vector3f position, Vector3f normal) { in VertexInfo() argument 74 this.normal = normal; in VertexInfo() 91 public final Vector3f normal; field in TangentBinormalGenerator.TriangleData 93 public TriangleData(Vector3f tangent, Vector3f binormal, Vector3f normal) { in TriangleData() argument 96 this.normal = normal; in TriangleData() 317 Vector3f normal = new Vector3f(); in processTriangle() local 364 tangent.cross(binormal, normal); in processTriangle() 365 normal.normalizeLocal(); in processTriangle() 370 normal); in processTriangle() [all …]
|