Example #1
0
        public Box3F(string data)
        {
            string[] split = data.Split(' ');
            if (split.Length != 6)
            {
                throw new ArgumentException("Box3F always takes exactly 6 parameters");
            }

            MinExtents = new Point3F(
                float.Parse(split[0]),
                float.Parse(split[1]),
                float.Parse(split[2])
                );
            MaxExtents = new Point3F(
                float.Parse(split[0]),
                float.Parse(split[0]),
                float.Parse(split[0])
                );
        }
Example #2
0
 internal Box3F(InternalBox3FStruct box3FStruct)
 {
     MinExtents = new Point3F(box3FStruct.point1X, box3FStruct.point1Y, box3FStruct.point1Z);
     MinExtents = new Point3F(box3FStruct.point2X, box3FStruct.point2Y, box3FStruct.point2Z);
 }
Example #3
0
 public Box3F(float x1, float y1, float z1, float x2, float y2, float z2)
 {
     MinExtents = new Point3F(x1, y1, z1);
     MinExtents = new Point3F(x2, y2, z2);
 }
Example #4
0
 internal TransformF(InternalTransformFStruct internalTransformF)
 {
     Position    = new Point3F(internalTransformF.x, internalTransformF.y, internalTransformF.z);
     Orientation = new AngAxisF(internalTransformF.rx, internalTransformF.ry, internalTransformF.rz, internalTransformF.ra);
     HasRotation = internalTransformF.hasRot;
 }
Example #5
0
 public TransformF(Point3F p, AngAxisF rotation)
 {
     Position    = p;
     Orientation = rotation;
     HasRotation = true;
 }
Example #6
0
 internal AngAxisF(InternalAngAxisFStruct angAxisFStruct)
 {
     Axis  = new Point3F(angAxisFStruct.pointX, angAxisFStruct.pointY, angAxisFStruct.pointZ);
     Angle = angAxisFStruct.angle;
 }
Example #7
0
 public AngAxisF(Point3F axis, float a)
 {
     Axis  = axis;
     Angle = a;
 }
Example #8
0
 public AngAxisF(float x, float y, float z, float a)
 {
     Axis  = new Point3F(x, y, z);
     Angle = a;
 }