Package com.ardor3d.math.type

Examples of com.ardor3d.math.type.ReadOnlyQuaternion


            return true;
        }
        if (!(o instanceof ReadOnlyQuaternion)) {
            return false;
        }
        final ReadOnlyQuaternion comp = (ReadOnlyQuaternion) o;
        return Math.abs(_x - comp.getX()) < Quaternion.ALLOWED_DEVIANCE
                && Math.abs(_y - comp.getY()) < Quaternion.ALLOWED_DEVIANCE
                && Math.abs(_z - comp.getZ()) < Quaternion.ALLOWED_DEVIANCE
                && Math.abs(_w - comp.getW()) < Quaternion.ALLOWED_DEVIANCE;
    }
View Full Code Here


            return true;
        }
        if (!(o instanceof ReadOnlyQuaternion)) {
            return false;
        }
        final ReadOnlyQuaternion comp = (ReadOnlyQuaternion) o;
        return getX() == comp.getX() && getY() == comp.getY() && getZ() == comp.getZ() && getW() == comp.getW();
    }
View Full Code Here

        // act on drag
        final Spatial picked = (Spatial) _results.getPickData(0).getTarget();
        if (picked instanceof InteractRing) {
            final InteractRing ring = (InteractRing) picked;
            _lastRing = ring;
            final ReadOnlyQuaternion rot = getNewAxisRotation(ring, oldMouse, current, camera, manager);
            final Transform transform = manager.getSpatialState().getTransform();
            rot.toRotationMatrix(_calcMat3).multiply(transform.getMatrix(), _calcMat3);
            transform.setRotation(_calcMat3);

            // apply our filters, if any, now that we've made updates.
            applyFilters(manager);
        }
View Full Code Here

TOP

Related Classes of com.ardor3d.math.type.ReadOnlyQuaternion

Copyright © 2018 www.massapicom. 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.