Examples of toVector()


Examples of mikera.vectorz.util.VectorBuilder.toVector()

    vb.append(3.0);
    assertEquals(Vector3.of(1.0, 2.0, 3.0), vb.toVector());
    vb.append(4.0);
    assertEquals(Vector4.of(1.0, 2.0, 3.0, 4.0), vb.toVector());
    vb.append(5.0);
    assertEquals(Vector.of(1.0, 2.0, 3.0, 4.0, 5.0), vb.toVector());
  }

  @Test
  public void testCreateLength() {
    for (int i = 0; i < 10; i++) {
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dLocation.toVector()

        // Get the entity at the bottom of the entity list, because
        // only its gravity should be affected and tracked considering
        // that the other entities will be mounted on it
        final dEntity lastEntity = entities.get(entities.size() - 1);

        final Vector v2 = destination.toVector();

        BukkitRunnable task = new BukkitRunnable() {
            int runs = 0;
            dLocation lastLocation;
            @Override
View Full Code Here

Examples of net.fec.openrq.util.linearalgebra.io.ByteVectorIterator.toVector()

        ByteVectorIterator these = a.nonZeroIterator();
        ByteVectorIterator those = b.nonZeroIterator();
        ByteVectorIterator both = these.orElseSubtract(those);

        return both.toVector(factory);
    }

    @Override
    public ByteVector apply(SparseByteVector a, DenseByteVector b) {
View Full Code Here

Examples of net.fec.openrq.util.linearalgebra.io.ByteVectorIterator.toVector()

        ByteVectorIterator these = a.nonZeroIterator();
        ByteVectorIterator those = b.nonZeroIterator();
        ByteVectorIterator both = these.orElseAdd(those);

        return both.toVector(factory);
    }

    @Override
    public ByteVector apply(SparseByteVector a, DenseByteVector b) {
View Full Code Here

Examples of net.fec.openrq.util.linearalgebra.io.ByteVectorIterator.toVector()

        ByteVectorIterator these = a.nonZeroIterator();
        ByteVectorIterator those = b.nonZeroIterator();
        ByteVectorIterator both = these.andAlsoMultiply(those);

        return both.toVector(factory);
    }

    @Override
    public ByteVector apply(SparseByteVector a, DenseByteVector b) {
View Full Code Here

Examples of org.bukkit.Location.toVector()

                                if (p != null)
                                {
                                    String name = (cpm.isLeader() ? plugin.getSettingsManager().getPageLeaderColor() : ((cpm.isTrusted() ? plugin.getSettingsManager().getPageTrustedColor() : plugin.getSettingsManager().getPageUnTrustedColor()))) + cpm.getName();
                                    Location loc = p.getLocation();
                                    int distance = (int) Math.ceil(loc.toVector().distance(player.getLocation().toVector()));
                                    String coords = loc.getBlockX() + " " + loc.getBlockY() + " " + loc.getBlockZ();
                                    String world = loc.getWorld().getName();

                                    List<String> cols = new ArrayList<String>();
                                    cols.add("  " + name);
View Full Code Here

Examples of org.bukkit.Location.toVector()

        Player player = event.getPlayer();
        Location from = event.getFrom();
        Location to = event.getTo();

        if (plugin.glassedManager.isGlassed(player)) {
            if (from.toVector().toBlockVector().equals(to.toVector().toBlockVector())) {
                return;
            }

            Block footblock = player.getWorld().getBlockAt(to.getBlockX(), to.getBlockY() - 1, to.getBlockZ());
            if (footblock.getType().equals(Material.AIR) || plugin.glassedManager.isGlassedBlock(player, footblock)) {
View Full Code Here

Examples of org.jmol.modelset.Measurement.toVector()

    }
    Measurement measureNew = new Measurement(modelSet, m, value, colix,
        strFormat, measurementCount);
    measurements.add(measureNew);
    viewer.setStatusMeasuring("measureCompleted", measurementCount++,
        measureNew.toVector().toString(), measureNew.getValue());
  }

  private void deleteMeasurement(int i) {
    String msg = ((Measurement) measurements.get(i)).toVector().toString();
    measurements.remove(i);
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.