Package mikera.vectorz

Examples of mikera.vectorz.Vector3.normalise()


  public static void main(String[] args) {
    Vector3 v=Vector3.of(1.0,2.0,3.0);   
    System.out.println(v);
   
    v.normalise();   
    System.out.println(v);
   
    Vector3 d=Vector3.of(10.0,0.0,0.0);   
    d.addMultiple(v, 5.0);
    System.out.println(d)
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.