public override bool Equals(object o) { if (o == null) { return(false); } if (o.GetType() != typeof(Point3) || o.GetType() != typeof(Cylindrical3)) { return(false); } Cylindrical3 other = (Cylindrical3)o; if ((r == other.r) && (theta == other.theta) && (z == other.z)) { return(true); } return(false); }
public static Point3 ToEuclidean(Cylindrical3 c) { return(new Point3((float)(c.r * Math.Cos(c.theta)), (float)(c.r * Math.Sin(c.theta)), c.z)); }