示例#1
0
        public void Free()
        {
            Position?.Free();
            Position = new Point3F(internalStruct.position);

            Orientation?.Free();
            Orientation = new AngAxisF(internalStruct.orientation);

            HasRotation = internalStruct.hasRotation;

            if (internalStructPtr != IntPtr.Zero)
            {
                StructMarshal.FreeStructPtr <InternalStruct>(internalStructPtr);
            }
            internalStructPtr = IntPtr.Zero;
        }
示例#2
0
 public Box3F(string s)
 {
     string[] strings = s.Split(' ');
     MinExtents = GenericMarshal.StringTo <Point3F>(string.Join(' ', strings.Skip(0).Take(3)));
     MaxExtents = GenericMarshal.StringTo <Point3F>(string.Join(' ', strings.Skip(3).Take(3)));
 }