public override string ToString()
        {
            string slope_symbol         = "";
            int    vertical_slope_limit = 100;

            if (Slope == 0)
            {
                slope_symbol = "_";
            }
            else if (Slope > 0 && Slope < vertical_slope_limit)
            {
                slope_symbol = "/";
            }
            else if (Slope < 0 && Slope > -vertical_slope_limit)
            {
                slope_symbol = "\\";
            }
            else
            {
                slope_symbol = "|";
            }
            string line = Point1.ToString() + "-" + Point2.ToString() + " " + slope_symbol;

            return(line);
        }
Exemple #2
0
 public override void ToFoamDictionary(FoamDictionary fd)
 {
     fd.SetChild("type", "cone");
     fd.SetChild("p0", Point0.ToString());
     fd.SetChild("p1", Point1.ToString());
     fd.SetChild("radius0", Radius0);
     fd.SetChild("radius1", Radius1);
 }
Exemple #3
0
    public override string ToString()
    {
        StringBuilder builder = new StringBuilder();

        builder.Append(center.ToString());
        builder.Append(",");
        builder.Append(rad.ToString());

        return(builder.ToString());
    }
Exemple #4
0
        public override string ToString()
        {
            string res = "";

            res += string.Format("Point1- {0}\n", Point1.ToString());
            res += string.Format("Point2- {0}\n", Point2.ToString());
            res += string.Format("Point3- {0}\n", Point3.ToString());
            res += string.Format("Point4- {0}\n", Point4.ToString());
            res += string.Format("Point5- {0}\n", Point5.ToString());
            res += string.Format("Point6- {0}\n", Point6.ToString());
            res += string.Format("Point7- {0}\n", Point7.ToString());
            res += string.Format("Point8- {0}\n", Point8.ToString());
            res += string.Format("Edge- {0}", EdgeLenght);
            return(res);
        }
Exemple #5
0
        protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            ele.TryPathTo("Point1", true, out subEle);
            subEle.Value = Point1.ToString();

            ele.TryPathTo("Point2", true, out subEle);
            subEle.Value = Point2.ToString();

            ele.TryPathTo("Point3", true, out subEle);
            subEle.Value = Point3.ToString();

            ele.TryPathTo("Point4", true, out subEle);
            subEle.Value = Point4.ToString();

            ele.TryPathTo("Point5", true, out subEle);
            subEle.Value = Point5.ToString();
        }
Exemple #6
0
 public override string ToString()
 {
     return "\r\n"+"Отрезок с началом в точке " +Point1.ToString()+"и концом в точке "+Point2.ToString()+" длина "+_length.ToString()+" ";
 }
Exemple #7
0
 public void Print()
 {
     Console.WriteLine("Point A " + Point1.ToString() + ", Point B " + Point2.ToString() + ", Point C " + Point3.ToString());
 }
Exemple #8
0
 public override string UniqueString()
 {
     return("Triangle " + Point1.ToString() + " " + Point2.ToString() + " " + Point3.ToString() + " " + FillColor);
 }
 public override string ToString()
 {
     return(string.Format("{0} -> {1}", Point1.ToString(), Point2.ToString()));
 }
Exemple #10
0
 public override string ToString()
 {
     return(Point1.ToString() + " " + Point2.ToString());
 }
Exemple #11
0
 public override string ToString()
 {
     return("RightTriangle(" + Point1.ToString() + ", " + Point2.ToString() + ", " + Point3.ToString() + ")");
 }
Exemple #12
0
 public override string ToString()
 {
     return("Segment(" + Point1.ToString() + ", " + Point2.ToString() + ")");
 }