main/src/georegression/transform/affine/AffinePointOps_F64.java
public static Vector2D_F64 transform( Affine2D_F64 se, Vector2D_F64 orig, Vector2D_F64 result ) {

		if( result == null ) {
			result = new Vector2D_F64();
		}

		// copy the values so that no errors happen if orig and result are the same instance
		double x = orig.x;
		double y = orig.y;

		result.x = se.a11 * x + se.a12 * y;
		result.y = se.a21 * x + se.a22 * y;

		return result;
	}
public static Vector2D_F64 transform( Affine2D_F64 se, Vector2D_F64 orig, Vector2D_F64 result ) {

		if( result == null ) {
			result = new Vector2D_F64();
		}

		// copy the values so that no errors happen if orig and result are the same instance
		double x = orig.x;
		double y = orig.y;

		result.x = se.a11 * x + se.a12 * y;
		result.y = se.a21 * x + se.a22 * y;

		return result;
	}
Applies a 2D affine transform to the point and stores the results in another
variable.

@param se	 The transform.
@param orig   Original point being transformed. Not modified.
@param result Where the results are stored.  Can be the same as orig. If null a new
instance is created. Modified.
@return Transformed point.