subtract Tuple3d - Java java.lang

Java examples for java.lang:Math Matrix

Description

subtract Tuple3d

Demo Code


import javax.vecmath.Tuple3d;
import javax.vecmath.Vector3d;

public class Main{
    static Vector3d sub(Tuple3d t0, Tuple3d t1) {
        return new Vector3d(t0.x - t1.x, t0.y - t1.y, t0.z - t0.z);
    }//w  w  w  .ja v a2s  . c  o m
}

Related Tutorials