Package se.llbit.math

Examples of se.llbit.math.Vector3d.scale()


    Vector3d v = vectorPool.get(sv);
    Vector3d w = vectorPool.get(sw);

    u.scale(FastMath.cos(phi)*sin_a);
    v.scale(FastMath.sin(phi)*sin_a);
    w.scale(cos_a);

    reflected.d.add(u, v);
    reflected.d.add(w);
    reflected.d.normalize();

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.