Examples of mult()


Examples of org.osm2world.core.math.VectorXZ.mult()

        null);
   
    target.drawTriangleStrip(colorMaterial, asList(
        lastV,
        headStart.subtract(endNormalXZ.mult(headLength/2)),
        headStart.add(endNormalXZ.mult(headLength/2))),
        null);
   
  }
 
}
View Full Code Here

Examples of org.terasology.math.Vector3i.mult()

        this.chunkFilterSize = new Vector3i(TeraMath.ceilPowerOfTwo(chunkSize.x) - 1, TeraMath.ceilPowerOfTwo(chunkSize.y) - 1, TeraMath.ceilPowerOfTwo(chunkSize.z) - 1);
        this.chunkPower = new Vector3i(TeraMath.sizeOfPower(chunkSize.x), TeraMath.sizeOfPower(chunkSize.y), TeraMath.sizeOfPower(chunkSize.z));

        Vector3i blockMin = new Vector3i();
        blockMin.sub(offset);
        blockMin.mult(chunkSize.x, chunkSize.y, chunkSize.z);
        Vector3i blockSize = chunkRegion.size();
        blockSize.mult(chunkSize.x, chunkSize.y, chunkSize.z);
        this.blockRegion = Region3i.createFromMinAndSize(blockMin, blockSize);
    }
View Full Code Here

Examples of processing.core.PMatrix3D.mult()

     
      bone.global_matrix = m;

      if (bone.getParent() != null && bone.getParent().global_matrix != null)
        m.preApply(bone.getParent().global_matrix);
      m.mult(new PVector(), bone.getAbsPosition());
     
      if (bone.getChildren().size() > 0)
      {
        for (BvhBone child : bone.getChildren())
        {
View Full Code Here

Examples of processing.core.PMatrix3D.mult()

        }
      }
      else
      {
        m.translate(bone.getEndOffsetX(), bone.getEndOffsetY(), bone.getEndOffsetZ());
        m.mult(new PVector(), bone.getAbsEndPosition());
      }
  }
 
 
  private void _updateFrame()
View Full Code Here

Examples of processing.core.PVector.mult()

    PVector pos5 = new PVector(20,1);
    HCircle c4 = new HCircle(pos5,12);
    PVector projectV4 = p1.projectionVector(c4);
    PVector result4 = new PVector(10,1);
    result4.normalize();
    result4.mult((float)(12-Math.sqrt(101)));
    assertEquals(projectV4.x,result4.x,1e-6);
    assertEquals(projectV4.y,result4.y,1e-6);
   
    //Test with polygon that is not at (0,0) but rather (10,10)
    ArrayList<PVector> points2 = new ArrayList<PVector>();
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.