Hyperion.Core.Geometry.Vector.this C# (CSharp) Method

this() public method

public this ( int index ) : double
index int
return double
        public double this[int index]
        {
            get
            {
                if (index == 0)
                    return x;
                if (index == 1)
                    return y;
                if (index == 2)
                    return z;
                throw new IndexOutOfRangeException ();
            }
            set
            {
                if (index == 0)
                    x = value;
                else if (index == 1)
                    y = value;
                else if (index == 2)
                    z = value;
                else
                    throw new IndexOutOfRangeException ();
            }
        }