Ejemplo n.º 1
0
        public virtual void Enter(Object @object)
        {
            if (@object == null)
            {
                return;
            }

            _vector.Add(@object.AsDouble());
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     NOTE: Code-generation-invoked method, method name and parameter order matters
        /// </summary>
        /// <param name="input">input</param>
        /// <returns>points</returns>
        /// <throws>IOException io error</throws>
        public static SortedDoubleVector ReadPoints(DataInput input)
        {
            var points = new SortedDoubleVector();
            int size = input.ReadInt();
            for (var i = 0; i < size; i++) {
                double d = input.ReadDouble();
                points.Add(d);
            }

            return points;
        }