to.scale(distance); to.add(from);
if (box != null) { Vector3f halfExtents = new Vector3f(VecMath.to(box.extents)); halfExtents.scale(0.5f); return new BoxShape(halfExtents);
secondTraceOffset.y = 0; secondTraceOffset.normalize(); secondTraceOffset.scale(checkingOffset); fromWorld.add(secondTraceOffset); toWorld.add(secondTraceOffset);
lookAheadOffset.y = 0; lookAheadOffset.normalize(); lookAheadOffset.scale(checkForwardDistance); Vector3f fromWorld = new Vector3f(hitPointWorld); fromWorld.y += stepHeight + 0.05f;
vertexNormal.scale(1.0f / faces); normalsPerVertex[pos++] = vertexNormal;
/** * @param touchPoint * @param screenWidth * @param screenHeight * @param projectionMatrix * @param viewMatrix * @return */ public static Vector3f GetWorldCoords(Vector2f touchPoint, float screenWidth, float screenHeight, float[] projectionMatrix, float[] viewMatrix) { Ray touchRay = projectRay(touchPoint, screenWidth, screenHeight, projectionMatrix, viewMatrix); touchRay.direction.scale(AppSettings.getStrokeDrawDistance()); touchRay.origin.add(touchRay.direction); return touchRay.origin; }
newDisp.scale((float)(Math.min(deltaLength, temperature)/deltaLength), fvd);
"Unexpected mathematical result in FRLayout:calcPositions [repulsion]"); } delta.scale((float)(force / deltaLength)); fvd1.add(delta);
"Unexpected mathematical result in FRLayout:calcPositions [force]"); } delta.scale((float)(force / deltaLength));
lineDirection.scale(1.0f / lineLength); MeshDataHolder line = Cube(width, width, lineLength, false, null); Point3f[] vertices = line.getVertices();
v.scale(a.getScale()); // Scale geom.setGeometry(v);
normalesp[i].scale((float) 1. / nbNormales[i]);