HomeSort by relevance Sort by last modified time
    Searched defs:tangent (Results 1 - 16 of 16) sorted by null

  /external/chromium_org/third_party/skia/src/pathops/
SkPathOpsLine.h 45 SkDVector tangent() const { return fPts[0] - fPts[1]; } function in struct:SkDLine
  /external/skia/src/pathops/
SkPathOpsLine.h 45 SkDVector tangent() const { return fPts[0] - fPts[1]; } function in struct:SkDLine
  /external/skia/tests/
PathMeasureTest.cpp 122 SkVector tangent; local
123 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
129 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1);
130 REPORTER_ASSERT(reporter, tangent.fY == 0);
148 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
154 REPORTER_ASSERT(reporter, tangent.fX == SK_Scalar1);
155 REPORTER_ASSERT(reporter, tangent.fY == 0);
156 REPORTER_ASSERT(reporter, meas.getPosTan(2.5f, &position, &tangent));
161 REPORTER_ASSERT(reporter, tangent.fX == 0);
162 REPORTER_ASSERT(reporter, tangent.fY == SK_Scalar1)
    [all...]
  /external/chromium_org/third_party/skia/src/effects/
Sk1DPathEffect.cpp 84 SkVector tangent; local
89 if (!meas.getPosTan(dist + sx, &pos, &tangent)) {
97 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0);
SkDashPathEffect.cpp 389 SkVector tangent = pts[1] - pts[0]; local
390 if (tangent.isZero()) {
394 tangent.scale(SkScalarInvert(length));
398 if (SK_Scalar1 == tangent.fX || -SK_Scalar1 == tangent.fX) {
400 } else if (SK_Scalar1 == tangent.fY || -SK_Scalar1 == tangent.fY) {
460 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, SkScalarHalf(clampedInitialDashLength));
461 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, SkScalarHalf(clampedInitialDashLength));
493 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance)
    [all...]
  /external/skia/src/effects/
Sk1DPathEffect.cpp 84 SkVector tangent; local
89 if (!meas.getPosTan(dist + sx, &pos, &tangent)) {
97 matrix.setSinCos(tangent.fY, tangent.fX, 0, 0);
SkDashPathEffect.cpp 389 SkVector tangent = pts[1] - pts[0]; local
390 if (tangent.isZero()) {
394 tangent.scale(SkScalarInvert(length));
398 if (SK_Scalar1 == tangent.fX || -SK_Scalar1 == tangent.fX) {
400 } else if (SK_Scalar1 == tangent.fY || -SK_Scalar1 == tangent.fY) {
460 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, SkScalarHalf(clampedInitialDashLength));
461 SkScalar y = pts[0].fY + SkScalarMul(tangent.fY, SkScalarHalf(clampedInitialDashLength));
493 SkScalar x = pts[0].fX + SkScalarMul(tangent.fX, distance)
    [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...]
  /frameworks/base/libs/hwui/font/
Font.cpp 231 SkPathMeasure& measure, SkPoint* position, SkVector* tangent) {
238 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent);
243 // Move along the tangent and offset by the normal
244 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset,
245 -tangent->fY * halfWidth + tangent->fX * vOffset);
246 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset,
247 tangent->fY * halfWidth + tangent->fX * vOffset)
306 SkVector tangent; local
    [all...]
  /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/
LODGeomap.java 96 m.setBuffer(Type.Tangent, 3, tanb);
655 Vector3f tangent = new Vector3f(); local
669 tangent.set(normal.cross(new Vector3f(0,0,1)));
672 BufferUtils.setInBuffer(tangent.normalizeLocal(), tangentStore, (r * getWidth() + c)); // save the tangent
713 calculateTangent(new Vector3f[]{v1.mult(scale), v2.mult(scale), v3.mult(scale)}, new Vector2f[]{t1, t2, t3}, tangent, binormal);
714 BufferUtils.setInBuffer(tangent, tangentStore, (r * getWidth() + c)); // save the tangent
726 * @param tangent that will store the result
727 * @return the tangent store
    [all...]
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/chromium_org/third_party/WebKit/Source/platform/graphics/
Path.cpp 187 SkVector tangent; local
190 if (measure.getPosTan(length, &position, &tangent)) {
191 normal = rad2deg(SkScalarToFloat(SkScalarATan2(tangent.fY, tangent.fX)));
  /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/
stroker.c 963 VGfloat tangent[4]; local
966 bezier_start_tangent(&bezier, tangent);
967 line_translate(tangent,
975 create_joins(stroker, prev[0], prev[1], tangent,
980 start_tangent[0] = tangent[0];
981 start_tangent[1] = tangent[1];
982 start_tangent[2] = tangent[2];
983 start_tangent[3] = tangent[3];
986 create_joins(stroker, prev[0], prev[1], tangent,
    [all...]
  /external/mesa3d/src/gallium/state_trackers/vega/
stroker.c 963 VGfloat tangent[4]; local
966 bezier_start_tangent(&bezier, tangent);
967 line_translate(tangent,
975 create_joins(stroker, prev[0], prev[1], tangent,
980 start_tangent[0] = tangent[0];
981 start_tangent[1] = tangent[1];
982 start_tangent[2] = tangent[2];
983 start_tangent[3] = tangent[3];
986 create_joins(stroker, prev[0], prev[1], tangent,
    [all...]
  /external/chromium_org/third_party/skia/src/core/
SkDraw.cpp 2180 SkVector tangent; local
    [all...]
  /external/skia/src/core/
SkDraw.cpp 2180 SkVector tangent; local
    [all...]

Completed in 435 milliseconds