Examples of TransformPoint()


Examples of aspect.util.Matrix4x4.transformPoint()

        @Override
        public void update() {
            if (thrust > 0) {
                Matrix4x4 m = ent.transform.global.getMdlMatrix();
                Vector3 point = m.transformPoint(new Vector3(1.0f, 0.0f, 3.0f));

                Vector3 vel = Frigate.this.rigidBody().velocity;

                vel = vel.plus(Vector3.cross(Frigate.this.rigidBody().angularVelocity, point.minus(ent.transform.global.position)));
View Full Code Here

Examples of aspect.util.Matrix4x4.transformPoint()

    }

    public boolean crossed(Vector2 l1, Vector2 l2) {
        Matrix4x4 m = entity.transform.getMdlMatrix();
       
        Vector2 v3 = m.transformPoint(v1).xz();
        Vector2 v4 = m.transformPoint(v2).xz();
       
        return Vector2.checkIntersection(l1, l2, v3, v4);
    }
}
View Full Code Here

Examples of aspect.util.Matrix4x4.transformPoint()

    public boolean crossed(Vector2 l1, Vector2 l2) {
        Matrix4x4 m = entity.transform.getMdlMatrix();
       
        Vector2 v3 = m.transformPoint(v1).xz();
        Vector2 v4 = m.transformPoint(v2).xz();
       
        return Vector2.checkIntersection(l1, l2, v3, v4);
    }
}
View Full Code Here

Examples of aspect.util.Matrix4x4.transformPoint()

    public Vector3[] getVertices() {
        Vector3[] tverts = new Vector3[numVertices];
        Matrix4x4 m = ent.transform.getMdlMatrix();

        for (int i = 0; i < numVertices; i++) {
            tverts[i] = m.transformPoint(vertices[i]);
        }

        return tverts;
    }
View Full Code Here

Examples of net.sf.latexdraw.parsers.svg.SVGTransformList.transformPoint()

    Point2D pt1 = new Point2D.Double(1,1);
    Point2D pt2 = new Point2D.Double(3,4);
    Point2D pt3;

    t.addTransformations("translate( 2 3)"); //$NON-NLS-1$
    assertEquals(t.transformPoint(pt1), pt2);

    t.addTransformations("translate( -2 -3)"); //$NON-NLS-1$
    t.addTransformations("rotate(90)"); //$NON-NLS-1$
    pt2.setLocation(0, 1);
    pt1.setLocation(1, 0);
View Full Code Here

Examples of net.sf.latexdraw.parsers.svg.SVGTransformList.transformPoint()

    t.addTransformations("translate( -2 -3)"); //$NON-NLS-1$
    t.addTransformations("rotate(90)"); //$NON-NLS-1$
    pt2.setLocation(0, 1);
    pt1.setLocation(1, 0);

    pt3 = t.transformPoint(pt1);
    assertEquals(Math.rint(pt3.getX()), pt2.getX(), 0.0001);
    assertEquals(Math.rint(pt3.getY()), pt2.getY(), 0.0001);
  }

View Full Code Here

Examples of org.gdal.gdal.Transformer.TransformPoint()

        options.add("DST_SRS=" + sr2.ExportToWkt());
        Transformer t = new Transformer(ds1, ds2, options);
        double argout[] = new double[3];
        argout[0] = 0;
        argout[1] = 0;
        int ret = t.TransformPoint(0, argout);
        if (ret == 0)
            throw new RuntimeException();
        System.out.println("x=" + argout[0] + " y=" + argout[1]);

        ret = t.TransformPoint(1, argout);
View Full Code Here

Examples of org.gdal.gdal.Transformer.TransformPoint()

        int ret = t.TransformPoint(0, argout);
        if (ret == 0)
            throw new RuntimeException();
        System.out.println("x=" + argout[0] + " y=" + argout[1]);

        ret = t.TransformPoint(1, argout);
        if (ret == 0)
            throw new RuntimeException();
        System.out.println("x=" + argout[0] + " y=" + argout[1]);

        ret = t.TransformPoint(argout, 0, 0, 0, 0);
View Full Code Here

Examples of org.gdal.gdal.Transformer.TransformPoint()

        ret = t.TransformPoint(1, argout);
        if (ret == 0)
            throw new RuntimeException();
        System.out.println("x=" + argout[0] + " y=" + argout[1]);

        ret = t.TransformPoint(argout, 0, 0, 0, 0);
        if (ret == 0)
            throw new RuntimeException();
        System.out.println("x=" + argout[0] + " y=" + argout[1]);

        ret = t.TransformPoint(argout, 0, 0, 0);
View Full Code Here

Examples of org.gdal.gdal.Transformer.TransformPoint()

        ret = t.TransformPoint(argout, 0, 0, 0, 0);
        if (ret == 0)
            throw new RuntimeException();
        System.out.println("x=" + argout[0] + " y=" + argout[1]);

        ret = t.TransformPoint(argout, 0, 0, 0);
        if (ret == 0)
            throw new RuntimeException();
        System.out.println("x=" + argout[0] + " y=" + argout[1]);

        double arrayOfPoints[][] = new double[][] { new double[]{0, 0}, new double[]{100,100} };
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.