コード例 #1
0
        /// <summary>
        /// Insert segment at position. This function is thread-safe, uses a SpinLock internally
        /// </summary>
        public void InsertSegment(T value, Vector2d center, double extent)
        {
            Vector2i idx = Indexer.ToGrid(center);

            if (extent > MaxExtent)
            {
                MaxExtent = extent;
            }

            insert_segment(value, idx);
        }
コード例 #2
0
        /// <summary>
        /// Insert point at position. This function is thread-safe, uses a SpinLock internally
        /// </summary>
        public void InsertPoint(T value, Vector2d pos)
        {
            Vector2i idx = Indexer.ToGrid(pos);

            insert_point(value, idx);
        }