/// <summary>Transforms the specified position by the specified matrix and translation.</summary> /// <param name="position">The position to transform.</param> /// <param name="transform">The transformation to apply.</param> /// <param name="result">The result of the transformation.</param> public static void Transform(ref FarPosition position, ref FarTransform transform, out FarPosition result) { var translatedPosition = position + transform.Translation; Transform(ref translatedPosition, ref transform.Matrix, out result); }
/// <summary>Transforms the specified position by the specified matrix and translation.</summary> /// <param name="position">The position to transform.</param> /// <param name="transform">The transformation to apply.</param> /// <returns>The result of the transformation.</returns> public static FarPosition Transform(FarPosition position, FarTransform transform) { return(Transform(position + transform.Translation, transform.Matrix)); }