Beispiel #1
0
            private static ITup_Double GetDouble(IVec v)
            {
                ITup_Double aux = v as ITup_Double;

                if (aux != null)
                {
                    return(aux);
                }
                return(null);
            }
Beispiel #2
0
            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);
            }
Beispiel #3
0
            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));
            }