Examples of leftX()


Examples of dwlab.shapes.Shape.leftX()

  private static Vector serviceVector10 = new Vector();
  private static Vector serviceVector11 = new Vector();
 
  public static void getEscribedRectangle( double minX, double minY, double maxX, double maxY, Margins result ) {
    Shape viewport = Camera.current.viewport;
    Camera.current.screenToField( viewport.leftX(), viewport.topY(), serviceVector00 );
    Camera.current.screenToField( viewport.rightX(), viewport.topY(), serviceVector10 );
    Camera.current.screenToField( viewport.leftX(), viewport.bottomY(), serviceVector01 );
    Camera.current.screenToField( viewport.rightX(), viewport.bottomY(), serviceVector11 );
    result.min.x = Math.min( Math.min( serviceVector00.x - minX, serviceVector10.x + maxX ),
        Math.min( serviceVector01.x - minX, serviceVector11.x + maxX ) );
View Full Code Here

Examples of dwlab.shapes.Shape.leftX()

 
  public static void getEscribedRectangle( double minX, double minY, double maxX, double maxY, Margins result ) {
    Shape viewport = Camera.current.viewport;
    Camera.current.screenToField( viewport.leftX(), viewport.topY(), serviceVector00 );
    Camera.current.screenToField( viewport.rightX(), viewport.topY(), serviceVector10 );
    Camera.current.screenToField( viewport.leftX(), viewport.bottomY(), serviceVector01 );
    Camera.current.screenToField( viewport.rightX(), viewport.bottomY(), serviceVector11 );
    result.min.x = Math.min( Math.min( serviceVector00.x - minX, serviceVector10.x + maxX ),
        Math.min( serviceVector01.x - minX, serviceVector11.x + maxX ) );
    result.min.y = Math.min( Math.min( serviceVector00.y - minY, serviceVector10.y - minY ),
        Math.min( serviceVector01.y + maxY, serviceVector11.y + maxY ) );
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.