示例#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));
 }
示例#2
0
文件: Point3L.cs 项目: 15831944/WW
 public static Point3L Subtract(Point3L p, Vector3L v)
 {
     return(new Point3L(p.X - v.X, p.Y - v.Y, p.Z - v.Z));
 }
示例#3
0
文件: Point3L.cs 项目: 15831944/WW
 public Point3L(Vector3L from)
 {
     this.X = from.X;
     this.Y = from.Y;
     this.Z = from.Z;
 }
示例#4
0
文件: Point3L.cs 项目: 15831944/WW
 public static Point3L Add(Point3L p, Vector3L v)
 {
     return(new Point3L(p.X + v.X, p.Y + v.Y, p.Z + v.Z));
 }