Package com.ardor3d.math.type

Examples of com.ardor3d.math.type.ReadOnlyMatrix3.applyPost()


        } else {
            box = (BoundingBox) store;
        }

        _center.multiply(scale, box._center);
        rotate.applyPost(box._center, box._center);
        box._center.addLocal(translate);

        final Matrix3 transMatrix = Matrix3.fetchTempInstance();
        transMatrix.set(rotate);
        // Make the rotation matrix all positive to get the maximum x/y/z extent
View Full Code Here


        @Override
        public void prepare(final ParticleSystem system) {
            _vector.set(_windDirection);
            final ReadOnlyMatrix3 mat = system.getEmitterTransform().getMatrix();
            if (_rotateWithScene && !mat.isIdentity()) {
                mat.applyPost(_vector, _vector);
            }
        }

        @Override
        public void apply(final double dt, final Particle p, final int index) {
View Full Code Here

        @Override
        public void prepare(final ParticleSystem system) {
            vector.set(gravity);
            final ReadOnlyMatrix3 mat = system.getEmitterTransform().getMatrix();
            if (rotateWithScene && !mat.isIdentity()) {
                mat.applyPost(vector, vector);
            }
        }

        @Override
        public void apply(final double dt, final Particle p, final int index) {
View Full Code Here

            _line.setOrigin(_axis.getOrigin());
            _line.setDirection(_axis.getDirection());
            final ReadOnlyMatrix3 mat = system.getEmitterTransform().getMatrix();
            if (_transformWithScene && !mat.isIdentity()) {
                final Vector3 temp = Vector3.fetchTempInstance();
                mat.applyPost(_line.getOrigin(), temp);
                _line.setOrigin(temp);
                mat.applyPost(_line.getDirection(), temp);
                _line.setDirection(temp);
                Vector3.releaseTempInstance(temp);
            }
View Full Code Here

            final ReadOnlyMatrix3 mat = system.getEmitterTransform().getMatrix();
            if (_transformWithScene && !mat.isIdentity()) {
                final Vector3 temp = Vector3.fetchTempInstance();
                mat.applyPost(_line.getOrigin(), temp);
                _line.setOrigin(temp);
                mat.applyPost(_line.getDirection(), temp);
                _line.setDirection(temp);
                Vector3.releaseTempInstance(temp);
            }
            if (_type == VT_CYLINDER) {
                _rot.fromAngleAxis(-_divergence, _line.getDirection());
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.