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]) ); }
internal Box3F(InternalBox3FStruct box3FStruct) { MinExtents = new Point3F(box3FStruct.point1X, box3FStruct.point1Y, box3FStruct.point1Z); MinExtents = new Point3F(box3FStruct.point2X, box3FStruct.point2Y, box3FStruct.point2Z); }
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); }
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; }
public TransformF(Point3F p, AngAxisF rotation) { Position = p; Orientation = rotation; HasRotation = true; }
internal AngAxisF(InternalAngAxisFStruct angAxisFStruct) { Axis = new Point3F(angAxisFStruct.pointX, angAxisFStruct.pointY, angAxisFStruct.pointZ); Angle = angAxisFStruct.angle; }
public AngAxisF(Point3F axis, float a) { Axis = axis; Angle = a; }
public AngAxisF(float x, float y, float z, float a) { Axis = new Point3F(x, y, z); Angle = a; }