Examples of crossLocal()


Examples of com.jme3.math.Vector3f.crossLocal()

     */
    private Vector3f[] transformToFirstLineOfBevelPoints(Vector3f[] startingLinePoints, Vector3f firstCurvePoint, Vector3f secondCurvePoint) {
        Vector3f planeNormal = secondCurvePoint.subtract(firstCurvePoint).normalizeLocal();

        float angle = FastMath.acos(planeNormal.dot(Vector3f.UNIT_Y));
        planeNormal.crossLocal(Vector3f.UNIT_Y).normalizeLocal();// planeNormal is the rotation axis now
        Quaternion pointRotation = new Quaternion();
        pointRotation.fromAngleAxis(angle, planeNormal);

        Matrix4f m = new Matrix4f();
        m.setRotationQuaternion(pointRotation);
View Full Code Here

Examples of org.mt4j.util.math.Vector3D.crossLocal()

    planes[FARP].reconstruct(fc, Z);
   
    Vector3D aux,normal;

    aux = (nc.getAdded(yScaledNh)).subtractLocal(camPos);
    normal = aux.crossLocal(X);
    planes[TOP].reconstruct(nc.getAdded(yScaledNh), normal);

    aux = (nc.getSubtracted(yScaledNh)).subtractLocal(camPos);
    normal = X.getCross(aux);
    planes[BOTTOM].reconstruct(nc.getSubtracted(yScaledNh), normal);
View Full Code Here

Examples of org.mt4j.util.math.Vector3D.crossLocal()

    aux = (nc.getSubtracted(yScaledNh)).subtractLocal(camPos);
    normal = X.getCross(aux);
    planes[BOTTOM].reconstruct(nc.getSubtracted(yScaledNh), normal);
   
    aux = (nc.getSubtracted(xScaledNw)).subtractLocal(camPos);
    normal = aux.crossLocal(Y);
    planes[LEFT].reconstruct(nc.getSubtracted(xScaledNw), normal);

    aux = (nc.getAdded(xScaledNw)).subtractLocal(camPos);
    normal = Y.getCross(aux);
    planes[RIGHT].reconstruct(nc.getAdded(xScaledNw), normal);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.