public Vector6 Scaled(Vector6 other) { var s = new Vector6(this); s.Scale(other); return(s); }
public static Vector6 operator+(Vector6 first, Vector6 second) { var sum = new Vector6(); sum.positive = first.positive + second.positive; sum.negative = first.negative + second.negative; return(sum); }
public Vector6 Local2Local(Transform fromT, Transform toT) { var tV = new Vector6(); for (int i = 0; i < 3; i++) { tV.Add(toT.InverseTransformDirection(fromT.TransformDirection(negative.Component(i)))); tV.Add(toT.InverseTransformDirection(fromT.TransformDirection(positive.Component(i)))); } return(tV); }
public Vector6 InverseTransform(Transform T) { var tV = new Vector6(); for (int i = 0; i < 3; i++) { tV.Add(T.InverseTransformDirection(negative.Component(i))); tV.Add(T.InverseTransformDirection(positive.Component(i))); } return(tV); }
public void Add(Vector6 vec) { positive += vec.positive; negative += vec.negative; }
public Vector6(Vector6 other) : this(other.positive, other.negative) { }
public void Scale(Vector6 other) { positive.Scale(other.positive); negative.Scale(-other.negative); }