HomeSort by relevance Sort by last modified time
    Searched full:tangent (Results 1 - 25 of 130) sorted by null

1 2 3 4 5 6

  /external/jmonkeyengine/engine/src/core/com/jme3/effect/influencers/
NewtonianParticleInfluencer.java 21 /** Emitter's surface tangent factor. */
23 /** Emitters tangent rotation factor. */
40 // calculating surface tangent (velocity contains the 'normal' value)
42 if (surfaceTangentRotation != 0.0f) {// rotating the tangent
49 // adding tangent vector
75 * This method sets the surface tangent factor.
77 * the surface tangent factor
84 * This method returns the surface tangent factor.
85 * @return the surface tangent factor
92 * This method sets the surface tangent rotation factor
    [all...]
  /external/skia/tests/
PathMeasureTest.cpp 121 SkVector tangent; local
122 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
128 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1);
129 REPORTER_ASSERT(reporter, tangent.fY == 0);
147 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
153 REPORTER_ASSERT(reporter, tangent.fX == SK_Scalar1);
154 REPORTER_ASSERT(reporter, tangent.fY == 0);
155 REPORTER_ASSERT(reporter, meas.getPosTan(SkFloatToScalar(2.5f), &position, &tangent));
160 REPORTER_ASSERT(reporter, tangent.fX == 0);
161 REPORTER_ASSERT(reporter, tangent.fY == SK_Scalar1)
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/util/
TangentBinormalGenerator.java 86 /** Keeps track of tangent, binormal, and normal for one triangle.
89 public final Vector3f tangent; field in class:TangentBinormalGenerator.TriangleData
93 public TriangleData(Vector3f tangent, Vector3f binormal, Vector3f normal) {
94 this.tangent = tangent;
161 //if the mesh has a bind pose, we need to generate the bind pose for the tangent buffer
164 VertexBuffer tangents = mesh.getBuffer(Type.Tangent);
315 Vector3f tangent = new Vector3f(); local
337 tangent.set(edge1);
338 tangent.normalizeLocal()
438 Vector3f tangent = new Vector3f(); local
673 Vector3f tangent = new Vector3f(); local
    [all...]
  /external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Light/
Deferred.j3md 11 // Activate shading along the tangent, instead of the normal
12 // Requires tangent data to be available on the model.
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
TerrainPatch.java 320 getMesh().getBuffer(Type.Tangent).updateData(newTangentBuffer);
324 private void setInBuffer(Mesh mesh, int index, Vector3f normal, Vector3f tangent, Vector3f binormal) {
326 VertexBuffer TB = mesh.getBuffer(Type.Tangent);
329 BufferUtils.setInBuffer(tangent, (FloatBuffer)TB.getData(), index);
368 Vector3f tangent = new Vector3f(); local
385 averageNormalsTangents(null, rootPoint, leftPoint, bottomPoint, rightPoint, normal, tangent, binormal);
386 setInBuffer(this.getMesh(), s, normal, tangent, binormal); local
387 setInBuffer(right.getMesh(), 0, normal, tangent, binormal); local
391 averageNormalsTangents(topPoint, rootPoint, leftPoint, bottomPoint, rightPoint,normal, tangent, binormal);
392 setInBuffer(this.getMesh(), s, normal, tangent, binormal); local
393 setInBuffer(right.getMesh(), 0, normal, tangent, binormal); local
406 setInBuffer(right.getMesh(), (s+1)*(s), normal, tangent, binormal); local
411 setInBuffer(right.getMesh(), (s+1)*s, normal, tangent, binormal); local
412 setInBuffer(bottom.getMesh(), s, normal, tangent, binormal); local
423 setInBuffer(right.getMesh(), (s+1)*(i), normal, tangent, binormal); local
439 setInBuffer(this.getMesh(), 0, normal, tangent, binormal); local
440 setInBuffer(left.getMesh(), s, normal, tangent, binormal); local
445 setInBuffer(this.getMesh(), 0, normal, tangent, binormal); local
446 setInBuffer(left.getMesh(), s, normal, tangent, binormal); local
447 setInBuffer(top.getMesh(), (s+1)*s, normal, tangent, binormal); local
458 setInBuffer(this.getMesh(), (s+1)*(s), normal, tangent, binormal); local
464 setInBuffer(this.getMesh(), (s+1)*(s), normal, tangent, binormal); local
466 setInBuffer(bottom.getMesh(), 0, normal, tangent, binormal); local
477 setInBuffer(this.getMesh(), (s+1)*(i), normal, tangent, binormal); local
500 setInBuffer(this.getMesh(), i, normal, tangent, binormal); local
501 setInBuffer(top.getMesh(), (s+1)*(s)+i, normal, tangent, binormal); local
524 setInBuffer(this.getMesh(), (s+1)*(s)+i, normal, tangent, binormal); local
525 setInBuffer(bottom.getMesh(), i, normal, tangent, binormal); local
    [all...]
  /external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/Water/
simple_water.vert 45 vec4 tangent = vec4(1.0, 0.0, 0.0, 0.0);
52 viewDir.x = dot(temp, tangent);
58 lightDir.x = dot(temp, tangent);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
HermiteInterpolator.java 35 /** The slope of the tangent at the start point. */
37 /** The slope of the tangent at the end point. */
92 // Calculate the slope of the tangent at p1.
95 // The slope of the tangent is half of the vector p0->p2.
100 // B(bx,by) is the slope vector of the tangent at p2.
107 // The slope of the tangent is the mirror image of vector B to vector A.
116 // Calculate the slope of the tangent at p2.
119 // The slope of the tangent is half of the vector p1->p3.
124 // B(bx,by) is the slope vector of the tangent at p1.
131 // The slope of the tangent is the mirror image of vector B to vector A
    [all...]
  /external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/
Lighting.glsllib 30 // find tangent view dir & vert pos
34 // find light dir in tangent space, works for point & directional lights
  /frameworks/base/libs/hwui/font/
Font.cpp 225 SkPathMeasure& measure, SkPoint* position, SkVector* tangent) {
232 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent);
237 // Move along the tangent and offset by the normal
238 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset,
239 -tangent->fY * halfWidth + tangent->fX * vOffset);
240 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset,
241 tangent->fY * halfWidth + tangent->fX * vOffset)
300 SkVector tangent; local
    [all...]
  /external/skia/include/effects/
Sk1DPathEffect.h 28 for the point/tangent at the specified distance.
53 position and tangent)
  /external/skia/legacy/src/effects/
SkDiscretePathEffect.cpp 15 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) {
16 SkVector normal = tangent;
Sk1DPathEffect.cpp 80 SkVector tangent; local
85 meas.getPosTan(dist + sx, &pos, &tangent);
91 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0);
  /external/skia/src/effects/
SkDiscretePathEffect.cpp 15 static void Perterb(SkPoint* p, const SkVector& tangent, SkScalar scale) {
16 SkVector normal = tangent;
SkDashPathEffect.cpp 387 SkVector tangent = pts[1] - pts[0]; local
388 if (tangent.isZero()) {
392 tangent.scale(SkScalarInvert(length));
396 if (SK_Scalar1 == tangent.fX || -SK_Scalar1 == tangent.fX) {
398 } else if (SK_Scalar1 == tangent.fY || -SK_Scalar1 == tangent.fY) {
458 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, SkScalarHalf(clampedInitialDashLength));
459 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, SkScalarHalf(clampedInitialDashLength));
491 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance)
    [all...]
Sk1DPathEffect.cpp 84 SkVector tangent; local
89 if (!meas.getPosTan(dist + sx, &pos, &tangent)) {
97 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0);
  /frameworks/base/graphics/java/android/graphics/
PathMeasure.java 24 * of a path, and/or to find the position and tangent along it, call
39 * path's length, and the position and tangent of any position along the
77 * corresponding position and tangent. Returns false if there is no path,
78 * or a zero-length path was specified, in which case position and tangent
83 * @param tan If not null, returns the sampled tangent (x==[0], y==[1])
104 * associated with the position and tangent at the specified distance
  /external/skia/legacy/src/core/
SkPathMeasure.cpp 239 int segType, SkScalar t, SkPoint* pos, SkVector* tangent) {
248 if (tangent) {
249 tangent->setNormalize(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY);
253 SkEvalQuadAt(pts, t, pos, tangent);
254 if (tangent) {
255 tangent->normalize();
259 SkEvalCubicAt(pts, t, pos, tangent, NULL);
260 if (tangent) {
261 tangent->normalize();
418 SkVector* tangent) {
    [all...]
  /external/skia/src/core/
SkPathMeasure.cpp 244 SkScalar t, SkPoint* pos, SkVector* tangent) {
251 if (tangent) {
252 tangent->setNormalize(pts[1].fX - pts[0].fX, pts[1].fY - pts[0].fY);
256 SkEvalQuadAt(pts, t, pos, tangent);
257 if (tangent) {
258 tangent->normalize();
262 SkEvalCubicAt(pts, t, pos, tangent, NULL);
263 if (tangent) {
264 tangent->normalize();
420 SkVector* tangent) {
    [all...]
  /external/skia/include/core/
SkPathMeasure.h 40 the corresponding position and tangent.
42 position and tangent are unchanged.
45 SkVector* tangent);
  /external/skia/legacy/include/core/
SkPathMeasure.h 40 the corresponding position and tangent.
42 position and tangent are unchanged.
44 bool getPosTan(SkScalar distance, SkPoint* position, SkVector* tangent);
  /external/skia/legacy/include/effects/
Sk1DPathEffect.h 30 for the point/tangent at the specified distance.
55 position and tangent)
  /external/freetype/include/freetype/
fttrigon.h 157 * Return the tangent of a given angle in fixed point format.
164 * The tangent value.
177 * Return the arc-tangent corresponding to a given vector (x,y) in
188 * The arc-tangent value (i.e. angle).
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/bits/
cmathcalls.h 57 /* Arc tangent of Z. */
64 /* Tangent of Z. */
74 /* Hyperbolic arc tangent of Z. */
81 /* Hyperbolic tangent of Z. */
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/bits/
cmathcalls.h 57 /* Arc tangent of Z. */
64 /* Tangent of Z. */
74 /* Hyperbolic arc tangent of Z. */
81 /* Hyperbolic tangent of Z. */
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/bits/
cmathcalls.h 57 /* Arc tangent of Z. */
64 /* Tangent of Z. */
74 /* Hyperbolic arc tangent of Z. */
81 /* Hyperbolic tangent of Z. */

Completed in 2861 milliseconds

1 2 3 4 5 6