Package flanagan.math

Examples of flanagan.math.VectorMaths


       
        // converts the phasor to VectorMaths vector = instance method
        public VectorMaths toVectorMaths(){
            double x = this.magnitude*Math.sin(this.phaseInRad);
            double y = this.magnitude*Math.cos(this.phaseInRad);
            VectorMaths vec = new VectorMaths(x, y);
            return vec;
        }
View Full Code Here


       
        // converts the phasor to VectorMaths vector = instance method
        public static VectorMaths toVectorMaths(Phasor ph){
            double x = ph.magnitude*Math.sin(ph.phaseInRad);
            double y = ph.magnitude*Math.cos(ph.phaseInRad);
            VectorMaths vec = new VectorMaths(x, y);
            return vec;
        }
View Full Code Here

TOP

Related Classes of flanagan.math.VectorMaths

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.