Home
last modified time | relevance | path

Searched refs:normal (Results 1 – 25 of 750) sorted by relevance

12345678910>>...30

/external/jmonkeyengine/engine/src/core/com/jme3/math/
DPlane.java64 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 …]
DTriangle.java55 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()
191normal.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/Geometry/
DHyperplane.h70 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()
104 result.normal() = v0.cross(v1); in Through()
105 RealScalar norm = result.normal().norm(); in Through()
110 result.normal() = svd.matrixV().col(2); in Through()
113 result.normal() /= norm; in Through()
114 result.offset() = -p0.dot(result.normal()); in Through()
125 normal() = parametrized.direction().unitOrthogonal(); in Hyperplane()
[all …]
/external/eigen/Eigen/src/Eigen2Support/Geometry/
DHyperplane.h59 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/
DTerrainPatch.java324 …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 …]
DLODGeomap.java654 Vector3f normal = new Vector3f(); in writeTangentArray() local
668 normal.set(normalBuffer.get(idx), normalBuffer.get(idx+1), normalBuffer.get(idx+2)); in writeTangentArray()
669 tangent.set(normal.cross(new Vector3f(0,0,1))); in writeTangentArray()
670 binormal.set(new Vector3f(1,0,0).cross(normal)); in writeTangentArray()
802 Vector3f normal = vars.vect8; in writeNormalArray() local
808 getNormal(bottomPoint, rootPoint, rightPoint, scale, normal); in writeNormalArray()
812 getNormal(leftPoint, rootPoint, bottomPoint, scale, normal); in writeNormalArray()
818 normal.set( getNormal(leftPoint, rootPoint, bottomPoint, scale, tmp1) ); in writeNormalArray()
819 normal.add( getNormal(bottomPoint, rootPoint, rightPoint, scale, tmp1) ); in writeNormalArray()
820 normal.normalizeLocal(); in writeNormalArray()
[all …]
/external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Light/
DGBuf.frag56 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);
DLighting.frag146 //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/skia/src/core/
DSkStrokerPriv.cpp15 const SkVector& normal, const SkPoint& stop, in ButtCapper() argument
22 const SkVector& normal, const SkPoint& stop, in RoundCapper() argument
26 normal.rotateCW(&parallel); in RoundCapper()
30 path->conicTo(projectedCenter + normal, projectedCenter, SK_ScalarRoot2Over2); in RoundCapper()
31 path->conicTo(projectedCenter - normal, stop, SK_ScalarRoot2Over2); in RoundCapper()
35 const SkVector& normal, const SkPoint& stop, in SquareCapper() argument
39 normal.rotateCW(&parallel); in SquareCapper()
43 path->setLastPt(pivot.fX + normal.fX + parallel.fX, pivot.fY + normal.fY + parallel.fY); in SquareCapper()
44 path->lineTo(pivot.fX - normal.fX + parallel.fX, pivot.fY - normal.fY + parallel.fY); in SquareCapper()
48 path->lineTo(pivot.fX + normal.fX + parallel.fX, pivot.fY + normal.fY + parallel.fY); in SquareCapper()
[all …]
/external/jmonkeyengine/engine/src/terrain/Common/MatDefs/Terrain/
DTerrainLighting.frag259 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/mesa3d/src/mesa/tnl/
Dt_vb_texgen.c101 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 …]
Dt_vb_normals.c43 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()
Dt_vb_lighttmp.h60 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 …]
Dt_rasterpos.c118 const GLfloat normal[3], in shade_rastpos()
177 n_dot_VP = DOT3( normal, VP ); in shade_rastpos()
212 n_dot_h = DOT3(normal, h); in shade_rastpos()
260 const GLfloat normal[3], GLuint unit, GLfloat texcoord[4]) in compute_texgen()
268 two_nu = 2.0F * DOT3(normal, u); in compute_texgen()
269 rx = u[0] - normal[0] * two_nu; in compute_texgen()
270 ry = u[1] - normal[1] * two_nu; in compute_texgen()
271 rz = u[2] - normal[2] * two_nu; in compute_texgen()
293 texcoord[0] = normal[0]; in compute_texgen()
316 texcoord[1] = normal[1]; in compute_texgen()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DSolidSurfaceComponent.java75 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-effects/Common/MatDefs/Water/
DWater.frag46 // 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 …]
DWater15.frag51 // 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/core-data/Common/ShaderLib/
DSkinning.glsllib11 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/pcre/dist/testdata/
Dtestinput81162 [^\\\x80-\xff\n\015()] * # normal*
1166 [^\\\x80-\xff\n\015()] * # normal*
1167 (?: \\ [^\x80-\xff] [^\\\x80-\xff\n\015()] * )* # (special normal*)*
1170 [^\\\x80-\xff\n\015()] * # normal*
1182 [^\\\x80-\xff\n\015"] * # normal
1183 (?: \\ [^\x80-\xff] [^\\\x80-\xff\n\015"] * )* # ( special normal* )*
1190 [^\\\x80-\xff\n\015()] * # normal*
1194 [^\\\x80-\xff\n\015()] * # normal*
1195 (?: \\ [^\x80-\xff] [^\\\x80-\xff\n\015()] * )* # (special normal*)*
1198 [^\\\x80-\xff\n\015()] * # normal*
[all …]
Dtestinput1678 [^\\\x80-\xff\n\015()] * # normal*
682 [^\\\x80-\xff\n\015()] * # normal*
683 (?: \\ [^\x80-\xff] [^\\\x80-\xff\n\015()] * )* # (special normal*)*
686 [^\\\x80-\xff\n\015()] * # normal*
698 [^\\\x80-\xff\n\015"] * # normal
699 (?: \\ [^\x80-\xff] [^\\\x80-\xff\n\015"] * )* # ( special normal* )*
706 [^\\\x80-\xff\n\015()] * # normal*
710 [^\\\x80-\xff\n\015()] * # normal*
711 (?: \\ [^\x80-\xff] [^\\\x80-\xff\n\015()] * )* # (special normal*)*
714 [^\\\x80-\xff\n\015()] * # normal*
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
DPoissonDistributionImpl.java52 private NormalDistribution normal; field in PoissonDistributionImpl
159 setNormalAndMeanInternal(normal, p); in setMean()
176 normal = z; in setNormalAndMeanInternal()
177 normal.setMean(p); in setNormalAndMeanInternal()
178 normal.setStandardDeviation(FastMath.sqrt(p)); in setNormalAndMeanInternal()
239 return normal.cumulativeProbability(x + 0.5); in normalApproximateProbability()
/external/jmonkeyengine/engine/src/core/com/jme3/util/
DTangentBinormalGenerator.java69 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 …]
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
DOCTTriangle.java74 Vector3f normal = new Vector3f(pointb); in getNormal() local
75normal.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-effects/Common/MatDefs/SSAO/
Dnormal.frag1 varying vec3 normal;
18 gl_FragColor = vec4(normal.xy* 0.5 + 0.5,-normal.z* 0.5 + 0.5, 1.0);
Dssao.frag80 vec3 normal = getNormal(texCoord);
92 ao += doAmbientOcclusion(texCoord + coord1.xy * 0.25, position, normal);
93 ao += doAmbientOcclusion(texCoord + coord2 * 0.50, position, normal);
94 ao += doAmbientOcclusion(texCoord + coord1.xy * 0.75, position, normal);
95 ao += doAmbientOcclusion(texCoord + coord2 * 1.00, position, normal);
103 //gl_FragColor=vec4(normal,1.0);

12345678910>>...30