Package javax.vecmath

Examples of javax.vecmath.Vector2f.scale()


        // Get corresponding shape coordinate
        textureCoordinate.set(area.getPoint(j));
       
        // Rotate, scale, translate results in translation first, then scaling and then rotation
        Transformations.rotate(textureCoordinate, rad);
        textureCoordinate.scale(scale);
        textureCoordinate.x += x;
        textureCoordinate.y += y;
      }
    }
    shape.setTexture(texture);
View Full Code Here


        return rect;
    }

    public Vector2f mid() {
        Vector2f mid = new Vector2f(rect.size());
        mid.scale(0.5f);
        mid.add(rect.min());
        return mid;

    }
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.