Exemple #1
0
 public override object ConvertFrom(
     ITypeDescriptorContext context,
     CultureInfo culture,
     object value)
 {
     if (value.GetType() == typeof(string))
     {
         return((object)Vector3L.Parse((string)value));
     }
     return(base.ConvertFrom(context, culture, value));
 }
Exemple #2
0
 public static Point3L Subtract(Point3L p, Vector3L v)
 {
     return(new Point3L(p.X - v.X, p.Y - v.Y, p.Z - v.Z));
 }
Exemple #3
0
 public Point3L(Vector3L from)
 {
     this.X = from.X;
     this.Y = from.Y;
     this.Z = from.Z;
 }
Exemple #4
0
 public static Point3L Add(Point3L p, Vector3L v)
 {
     return(new Point3L(p.X + v.X, p.Y + v.Y, p.Z + v.Z));
 }