Example #1
0
        public PVector GetPointFromPosition(double value)
        {
            var vec = FullVector.Copy();

            vec.Mult(value);
            vec.Add(Start);
            return(vec);
        }
Example #2
0
        public PVector ClosesetPoint(PVector p)
        {
            var a = FullVector.Copy();

            a.RotateDegrees(90);
            a.Add(p);
            var newLine = new PLine(p, a);

            return(Intersection(newLine));
        }
Example #3
0
            public override FullVector AsFullVector()
            {
                FullVector result = new FullVector(Length);
                int        index  = 0;

                foreach (VectorBase vector in _vectors)
                {
                    for (int i = 0; i < vector.Length; i++)
                    {
                        result.SetValueAtIndex(vector[i], index + i);
                    }

                    index += vector.Length;
                }
                return(result);
            }