private static ITup_Double GetDouble(IVec v) { ITup_Double aux = v as ITup_Double; if (aux != null) { return(aux); } return(null); }
public void Add(IVec other) { ITup_Double _other = GetDouble(other); this.Set(this.x + _other.X, this.y + _other.Y, this.z + _other.Z, this.w + _other.W); }
public Vec Add(IVec other) { ITup_Double _other = GetDouble(other); return(new Vec(this.x + _other.X, this.y + _other.Y, this.z + _other.Z, this.w + _other.W)); }