Here you can find the source of sum3(double[] a, double[] b)
Parameter | Description |
---|---|
Vector | B double[x,y,theta] |
public static double[] sum3(double[] a, double[] b)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w ww .ja v a 2 s.c o m*/ * get the sum of two 3-dimension vector * @param Vector A double[x,y,theta] * @param Vector B double[x,y,theta] * @return the vector which represent the sum */ public static double[] sum3(double[] a, double[] b) { return new double[] { a[0] + b[0], a[1] + b[1], a[2] + b[2] }; } }