Home
last modified time | relevance | path

Searched refs:halfHeight (Results 1 – 20 of 20) sorted by relevance

/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/
DbtCylinderShape.cpp135 btScalar halfHeight = halfExtents[cylinderUpAxis]; in CylinderLocalSupportX() local
146 tmp[YY] = v[YY] < 0.0 ? -halfHeight : halfHeight; in CylinderLocalSupportX()
153 tmp[YY] = v[YY] < 0.0 ? -halfHeight : halfHeight; in CylinderLocalSupportX()
176 btScalar halfHeight = halfExtents[cylinderUpAxis]; in CylinderLocalSupportY() local
187 tmp[YY] = v[YY] < 0.0 ? -halfHeight : halfHeight; in CylinderLocalSupportY()
194 tmp[YY] = v[YY] < 0.0 ? -halfHeight : halfHeight; in CylinderLocalSupportY()
213 btScalar halfHeight = halfExtents[cylinderUpAxis]; in CylinderLocalSupportZ() local
224 tmp[YY] = v[YY] < 0.0 ? -halfHeight : halfHeight; in CylinderLocalSupportZ()
231 tmp[YY] = v[YY] < 0.0 ? -halfHeight : halfHeight; in CylinderLocalSupportZ()
DbtConeShape.cpp74 btScalar halfHeight = m_height * btScalar(0.5); in coneLocalSupport() local
81 tmp[m_coneIndices[1]] = halfHeight; in coneLocalSupport()
91 tmp[m_coneIndices[1]] = -halfHeight; in coneLocalSupport()
98 tmp[m_coneIndices[1]] = -halfHeight; in coneLocalSupport()
DbtConvexShape.cpp205 btScalar halfHeight = halfExtents[cylinderUpAxis]; in localGetSupportVertexWithoutMarginNonVirtual() local
215 tmp[YY] = v[YY] < 0.0 ? -halfHeight : halfHeight; in localGetSupportVertexWithoutMarginNonVirtual()
220 tmp[YY] = v[YY] < 0.0 ? -halfHeight : halfHeight; in localGetSupportVertexWithoutMarginNonVirtual()
230 btScalar halfHeight = capsuleShape->getHalfHeight(); in localGetSupportVertexWithoutMarginNonVirtual() local
252 pos[capsuleUpAxis] = halfHeight; in localGetSupportVertexWithoutMarginNonVirtual()
267 pos[capsuleUpAxis] = -halfHeight; in localGetSupportVertexWithoutMarginNonVirtual()
/external/libgdx/gdx/src/com/badlogic/gdx/math/
DFrustum.java183 …public boolean boundsInFrustum (float x, float y, float z, float halfWidth, float halfHeight, floa… in boundsInFrustum() argument
185 … if (planes[i].testPoint(x + halfWidth, y + halfHeight, z + halfDepth) != PlaneSide.Back) continue; in boundsInFrustum()
186 … if (planes[i].testPoint(x + halfWidth, y + halfHeight, z - halfDepth) != PlaneSide.Back) continue; in boundsInFrustum()
187 … if (planes[i].testPoint(x + halfWidth, y - halfHeight, z + halfDepth) != PlaneSide.Back) continue; in boundsInFrustum()
188 … if (planes[i].testPoint(x + halfWidth, y - halfHeight, z - halfDepth) != PlaneSide.Back) continue; in boundsInFrustum()
189 … if (planes[i].testPoint(x - halfWidth, y + halfHeight, z + halfDepth) != PlaneSide.Back) continue; in boundsInFrustum()
190 … if (planes[i].testPoint(x - halfWidth, y + halfHeight, z - halfDepth) != PlaneSide.Back) continue; in boundsInFrustum()
191 … if (planes[i].testPoint(x - halfWidth, y - halfHeight, z + halfDepth) != PlaneSide.Back) continue; in boundsInFrustum()
192 … if (planes[i].testPoint(x - halfWidth, y - halfHeight, z - halfDepth) != PlaneSide.Back) continue; in boundsInFrustum()
/external/skia/src/effects/
DSkDashPathEffect.cpp279 SkScalar halfWidth, halfHeight; in asPoints() local
282 halfHeight = SkScalarHalf(rec.getWidth()); in asPoints()
285 halfHeight = SkScalarHalf(clampedInitialDashLength); in asPoints()
289 results->fFirst.addRect(x - halfWidth, y - halfHeight, in asPoints()
290 x + halfWidth, y + halfHeight); in asPoints()
330 SkScalar halfWidth, halfHeight; in asPoints() local
333 halfHeight = SkScalarHalf(rec.getWidth()); in asPoints()
336 halfHeight = SkScalarHalf(temp); in asPoints()
338 results->fLast.addRect(x - halfWidth, y - halfHeight, in asPoints()
339 x + halfWidth, y + halfHeight); in asPoints()
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateVPTests.cpp290 const float halfHeight = (float)HEIGHT / 2; in iterate() local
296 { 0.0f, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
297 { halfWidth, 0.0f, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
298 { halfWidth, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f }, in iterate()
299 { 0.0f, halfHeight, (float)halfWidth, (float)halfHeight, 0.0f, 0.0f } in iterate()
306 { { (deInt32)halfWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
307 { { quarterWidth, (deInt32)halfHeight }, { quarterWidth, quarterHeight } }, in iterate()
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
DTouchpad.java143 float halfHeight = getHeight() / 2; in layout() local
144 float radius = Math.min(halfWidth, halfHeight); in layout()
145 touchBounds.set(halfWidth, halfHeight, radius); in layout()
147 knobBounds.set(halfWidth, halfHeight, radius); in layout()
148 deadzoneBounds.set(halfWidth, halfHeight, deadzoneRadius); in layout()
150 knobPosition.set(halfWidth, halfHeight); in layout()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/LinearMath/
DbtIDebugDraw.h337 …virtual void drawCapsule(btScalar radius, btScalar halfHeight, int upAxis, const btTransform& tran… in drawCapsule() argument
342 capStart[upAxis] = -halfHeight; in drawCapsule()
345 capEnd[upAxis] = halfHeight; in drawCapsule()
395 …virtual void drawCylinder(btScalar radius, btScalar halfHeight, int upAxis, const btTransform& tra… in drawCylinder() argument
399 offsetHeight[upAxis] = halfHeight; in drawCylinder()
402 capStart[upAxis] = -halfHeight; in drawCylinder()
404 capEnd[upAxis] = halfHeight; in drawCylinder()
427 btScalar halfHeight = height * btScalar(0.5); in drawCone() local
428 offsetHeight[upAxis] = halfHeight; in drawCone()
436 capEnd[upAxis] = -halfHeight; in drawCone()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/environment/
DDirectionalShadowLight.java37 protected float halfHeight; field in DirectionalShadowLight
48 halfHeight = shadowViewportHeight * 0.5f; in DirectionalShadowLight()
56 update(tmpV.set(camera.direction).scl(halfHeight), camera.direction); in update()
/external/replicaisland/src/com/replica/replicaisland/
DSimpleCollisionComponent.java63 final float halfHeight = parentObject.height / 2.0f; in update() local
69 parentObject.getPosition().y = mHitPoint.y - halfHeight; in update()
DGameRenderer.java215 final float halfHeight = mHalfHeight; in onDrawFrame() local
223 y = (y - mCameraY) + halfHeight; in onDrawFrame()
/external/libgdx/extensions/gdx-bullet/jni/swig-src/linearmath/com/badlogic/gdx/physics/bullet/linearmath/
DbtIDebugDraw.java275 …public void drawCapsule(float radius, float halfHeight, int upAxis, Matrix4 transform, Vector3 col… in drawCapsule() argument
276 …dius, halfHeight, upAxis, transform, color); else LinearMathJNI.btIDebugDraw_drawCapsuleSwigExplic… in drawCapsule()
279 …public void drawCylinder(float radius, float halfHeight, int upAxis, Matrix4 transform, Vector3 co… in drawCylinder() argument
280 …ius, halfHeight, upAxis, transform, color); else LinearMathJNI.btIDebugDraw_drawCylinderSwigExplic… in drawCylinder()
DLinearMathJNI.java641 …ector_btIDebugDraw_drawCapsule(btIDebugDraw jself, float radius, float halfHeight, int upAxis, Mat… in SwigDirector_btIDebugDraw_drawCapsule() argument
642 jself.drawCapsule(radius, halfHeight, upAxis, transform, color); in SwigDirector_btIDebugDraw_drawCapsule()
644 …ctor_btIDebugDraw_drawCylinder(btIDebugDraw jself, float radius, float halfHeight, int upAxis, Mat… in SwigDirector_btIDebugDraw_drawCylinder() argument
645 jself.drawCylinder(radius, halfHeight, upAxis, transform, color); in SwigDirector_btIDebugDraw_drawCylinder()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/common/
DOBBViewportTransform.java72 public void setExtents(float halfWidth, float halfHeight) { in setExtents() argument
73 box.extents.set(halfWidth, halfHeight); in setExtents()
DIViewportTransform.java60 void setExtents(float halfWidth, float halfHeight); in setExtents() argument
/external/libgdx/extensions/gdx-bullet/jni/swig-src/linearmath/
Dlinearmath_wrap.h39 …virtual void drawCapsule(btScalar radius, btScalar halfHeight, int upAxis, btTransform const &tran…
40 …virtual void drawCylinder(btScalar radius, btScalar halfHeight, int upAxis, btTransform const &tra…
Dlinearmath_wrap.cpp2693 void SwigDirector_btIDebugDraw::drawCapsule(btScalar radius, btScalar halfHeight, int upAxis, btTra… in drawCapsule() argument
2704 btIDebugDraw::drawCapsule(radius,halfHeight,upAxis,transform,color); in drawCapsule()
2710 jhalfHeight = (jfloat) halfHeight; in drawCapsule()
2731 void SwigDirector_btIDebugDraw::drawCylinder(btScalar radius, btScalar halfHeight, int upAxis, btTr… in drawCylinder() argument
2742 btIDebugDraw::drawCylinder(radius,halfHeight,upAxis,transform,color); in drawCylinder()
2748 jhalfHeight = (jfloat) halfHeight; in drawCylinder()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DBox2DTest.java304 private void renderBox (Body body, float halfWidth, float halfHeight) { in renderBox() argument
317 renderer.rect(-halfWidth, -halfHeight, halfWidth * 2, halfHeight * 2); in renderBox()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/
DbtCollisionWorld.cpp1306 btScalar halfHeight = capsuleShape->getHalfHeight(); in debugDrawObject() local
1309 getDebugDrawer()->drawCapsule(radius, halfHeight, upAxis, worldTransform, color); in debugDrawObject()
1328 btScalar halfHeight = cylinder->getHalfExtentsWithMargin()[upAxis]; in debugDrawObject() local
1329 getDebugDrawer()->drawCylinder(radius, halfHeight, upAxis, worldTransform, color); in debugDrawObject()
/external/skia/tests/
DRoundRectTest.cpp715 SkScalar halfHeight = SkScalarHalf(dst.height()); in test_issue_2696() local
721 SkScalarNearlyEqual(dst.radii((SkRRect::Corner)i).fY, halfHeight)); in test_issue_2696()