/// <summary> /// Translates the affine transform by the given amount in each dimension. /// </summary> /// <param name="amount">Amount to translate by.</param> public void Translate(DoubleComponent amount) { if (IsEmpty) { return; } _left = _left.Add(amount); _top = _top.Add(amount); _right = _right.Add(amount); _bottom = _bottom.Add(amount); }
public Rectangle3D(Point3D location, Size3D size) { _xMin = location.X; _yMin = location.Y; _zMin = location.Z; _xMax = _xMin.Add(size.Width); _yMax = _yMin.Add(size.Height); _zMax = _zMin.Add(size.Depth); _hasValue = true; }