public TransformF(string data) { // TODO fix pls string[] split = data.Split(' '); if (split.Length != 7) { throw new ArgumentException("TransformF always takes exactly 7 parameters"); } Position = new Point3F(float.Parse(split[0]), float.Parse(split[1]), float.Parse(split[2])); Orientation = new AngAxisF(float.Parse(split[3]), float.Parse(split[4]), float.Parse(split[5]), float.Parse(split[6])); HasRotation = true; }
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; }