/* (non-Javadoc)
@see org.joml.Vector3dc#half(org.joml.Vector3dc, org.joml.Vector3d)
482267
public Vector3d half(Vector3dc other, Vector3d dest) {
        return half(other.x(), other.y(), other.z(), dest);
    }
443570
public void applyCentralImpulse(final float x, final float y, final float z) {
        mPhysicsContext.runOnPhysicsThread(new Runnable() {
            @Override
            public void run() {
                Native3DRigidBody.applyCentralImpulse(getNative(), x, y, z);
            }
        });
    }
308172
public Vector3d transformPosition(Vector3d dest) {
        dest.set(m00 * dest.x + m10 * dest.y + m20 * dest.z + m30,
                 m01 * dest.x + m11 * dest.y + m21 * dest.z + m31,
                 m02 * dest.x + m12 * dest.y + m22 * dest.z + m32);
        return dest;
    }
579361
public HalFormsDocument<T> andLink(Link link) {

		Assert.notNull(link, "Link must not be null!");

		return new HalFormsDocument<>(resource, resources, embedded, pageMetadata, links.and(link), templates);
	}
52094
public void add(Vector3d v1) {
        x += v1.x;
        y += v1.y;
        z += v1.z;
    }
906646
public Vector3d transformPosition(Vector3dc v, Vector3d dest) {
        return transformPosition(v.x(), v.y(), v.z(), dest);
    }
51228
public double areaSquared(HalfEdge hedge0, HalfEdge hedge1) {
        Point3d p0 = hedge0.tail().pnt;
        Point3d p1 = hedge0.head().pnt;
        Point3d p2 = hedge1.head().pnt;

        double dx1 = p1.x - p0.x;
        double dy1 = p1.y - p0.y;
        double dz1 = p1.z - p0.z;

        double dx2 = p2.x - p0.x;
        double dy2 = p2.y - p0.y;
        double dz2 = p2.z - p0.z;

        double x = dy1 * dz2 - dz1 * dy2;
        double y = dz1 * dx2 - dx1 * dz2;
        double z = dx1 * dy2 - dy1 * dx2;

        return x * x + y * y + z * z;
    }
1274339
def iter_halfs_double(graph):
    """"""
    edges = graph.edges
    for index1, (atom_a1, atom_b1) in enumerate(edges):
        for atom_a2, atom_b2 in edges[:index1]:
            try:
                affected_atoms1, affected_atoms2, hinge_atoms = graph.get_halfs_double(atom_a1, atom_b1, atom_a2, atom_b2)
                yield affected_atoms1, affected_atoms2, hinge_atoms
            except GraphError:
                pass
42051
public Vector3d sub(double x, double y, double z) {
        return sub(x, y, z, thisOrNew());
    }
1011321
public void setPercent(double percent) {

        if (percent > 100) {
            percent = 100;
        }

        if (percent < 0) {
            percent = 0;
        }

        this.percent = percent;
        fillContainer.getElement().getStyle().setWidth(percent, Unit.PCT);
    }
494302
public static SinCosTable make(int steps) {
    if ((steps & 0x3) == 0) {
      return new QuarterTable(steps);
    }
    if ((steps & 0x1) == 0) {
      return new HalfTable(steps);
    }
    return new FullTable(steps);
  }
17755
public Vector3d transform(Vector3dc v, Vector3d dest) {
        v.mul(this, dest);
        return dest;
    }
659422
def to_half(b:Collection[Tensor])->Collection[Tensor]:
    ""
    if is_listy(b): return [to_half(o) for o in b]
    return b.half() if b.dtype not in [torch.int64, torch.int32, torch.int16] else b
1104180
public Vector3d sub(double x, double y, double z, Vector3d dest) {
        dest.x = this.x - x;
        dest.y = this.y - y;
        dest.z = this.z - z;
        return dest;
    }
74387
public Vector3d cross(double x, double y, double z) {
        return cross(x, y, z, thisOrNew());
    }
853273
public Vector3f half(float x, float y, float z) {
        return half(x, y, z, thisOrNew());
    }
1179487
public void merge(final Vector other) {
	for(int i =0; i<other.size(); i++) {
	    this.merge((ByteRange)other.elementAt(i));
	}
    }