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)); }
public static Point3L Subtract(Point3L p, Vector3L v) { return(new Point3L(p.X - v.X, p.Y - v.Y, p.Z - v.Z)); }
public Point3L(Vector3L from) { this.X = from.X; this.Y = from.Y; this.Z = from.Z; }
public static Point3L Add(Point3L p, Vector3L v) { return(new Point3L(p.X + v.X, p.Y + v.Y, p.Z + v.Z)); }