Package org.lwjgl.util.vector

Examples of org.lwjgl.util.vector.ReadableVector3f


    float distanceOther = this.distanceToCamera();
    return (distance > distanceOther)?1:(distance == distanceOther)?0:-1;
  }
 
  public float distanceToCamera(){
    ReadableVector3f camPos = getCurrentCamera().getPosition();
    float distance = new Vector3f(this.position.x-camPos.getX(), this.position.y-camPos.getY(), this.position.z-camPos.getZ()).length();
    return distance;
  }
View Full Code Here

TOP

Related Classes of org.lwjgl.util.vector.ReadableVector3f

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.