Examples of HRectangle


Examples of hermes.hshape.HRectangle

   * @param y          the starting y coordinate of the camera
   * @param cameraWidth    the width of the camera view, in world coordinate units. This determines how far the camera can see in the x direction.
   * @param cameraHeight    the height of the camera view. This determines how far the camera can see in the y direction.
   */
  public HCamera(float x, float y, float cameraWidth, float cameraHeight) {
    super(new HRectangle(new PVector(x,y), new PVector(0,0), new PVector(cameraWidth, cameraHeight)),
        HermesMath.zeroVector());
    _worldCoordinateWidth = cameraWidth;
    _worldCoordinateHeight = cameraHeight;
   
    _zoomFactor = 1.0f;
View Full Code Here

Examples of hermes.hshape.HRectangle

public class GravityInteractorTest {

  public class TestBeing extends MassedBeing {

    public TestBeing(PVector position, PVector velocity, float mass) {
      super(new HRectangle(position, 4, 4), velocity, mass, 1);
    }
View Full Code Here

Examples of hermes.hshape.HRectangle

public class PhysicsTest {

  class MyBeing extends MassedBeing {

    public MyBeing(float mass, float elasticity) {
      super(new HRectangle(zeroVector(),1.0f,1.0f),
          zeroVector(), mass, elasticity);
    }
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.