ClearCanvas.ImageViewer.Graphics.MammographyImageSpatialTransform.GetCurrentPosteriorVector C# (CSharp) Метод

GetCurrentPosteriorVector() приватный статический Метод

private static GetCurrentPosteriorVector ( Vector3D imagePosterior, int sourceWidth, float adjustedSourceHeight, int rotation, float scaleX, float scaleY, bool flipX, bool flipY ) : Vector3D
imagePosterior Vector3D
sourceWidth int
adjustedSourceHeight float
rotation int
scaleX float
scaleY float
flipX bool
flipY bool
Результат Vector3D
		private static Vector3D GetCurrentPosteriorVector(Vector3D imagePosterior, int sourceWidth, float adjustedSourceHeight, int rotation, float scaleX, float scaleY, bool flipX, bool flipY)
		{
			// figure out where the posterior direction went
			using (var transform = new Matrix())
			{
				var points = new[] {new PointF(sourceWidth*imagePosterior.X, adjustedSourceHeight*imagePosterior.Y)};
				transform.Rotate(rotation);
				transform.Scale(scaleX*(flipY ? -1 : 1), scaleY*(flipX ? -1 : 1));
				transform.TransformPoints(points);
				return new Vector3D(points[0].X, points[0].Y, 0);
			}
		}