Kuroda pitched a two-hitter against the top offensive team in baseball and New York got consecutive homers from Nick Swisher and Mark Teixeira in a 3-0 victory Tuesday night.

“He was tough,” Hamilton said. “Anybody is going to be tough if they don’t really have to throw strikes to get you out. He didn’t expand the zone a lot, but he expanded it just enough to get us swinging. So he did a good job.”

Kuroda held Texas hitless until Elvis Andrus’ infield single leading off the seventh, outpitching All-Star lefty Matt Harrison in a crisp duel at Yankee Stadium. The right-hander walked two and struck out five in his fourth career shutout and second this season. He threw 74 of 109 pitches for strikes.

“I was doing everything I could to match him and stay in the game as long as I could,” Harrison said. “Kuroda was on top of his game tonight and it was definitely fun to be a part of.”

Derek Jeter singled off Harrison (13-7) with one out in the seventh to start the New York rally. Alexi Ogando came in to face Swisher, who cracked a go-ahead grand slam off Ryan Dempster in the series opener Monday night.

This time, Swisher fought his way back from an 0-2 count and drove a payoff pitch to the back of the Yankees’ bullpen in right-center for his 16th home run.

“I was hitting on sound at that point. I mean, he’s throwing 100 mph,” Swisher said. “That 3-2 count, I was just hoping he would throw another fastball.”

The bubbly switch-hitter rounded the bases with a big grin, and New York was on its way to a seventh straight regular-season victory over the Rangers at home.

“I wanted to put velocity on Swisher and he didn’t beat him with it,” Texas manager Ron Washington said.

Teixeira then lined a shot into the right-field stands for his 23rd home run.

The surging Yankees won for the sixth time in seven games. They’ve taken the first two in a four-game set between the AL’s top two teams.

“Man, these games are a lot of fun to play in,” Swisher said.

Slowed by a lack of run support lately, Kuroda (11-8) won for the first time in four starts and lowered his ERA to 3.06. He gave up a clean single in the eighth to Michael Young, who was immediately erased on David Murphy’s double-play grounder.

Kuroda then worked a 1-2-3 ninth to finish a gem that took 2 hours, 35 minutes.

“We were swinging at everything,” Hamilton said.

Kuroda has six scoreless outings of at least seven innings, most in the majors. He became the first Yankees pitcher with two shutouts in a season since Mike Mussina in 2005.

In his first season with New York, the 37-year-old Kuroda gave a depleted rotation yet another boost with ace CC Sabathia and veteran Andy Pettitte on the disabled list.

“This is a very good lineup that he just shut down,” Yankees manager Joe Girardi said. “Probably our best pitching performance of the year.”

Featuring a sharp slider, Kuroda worked around two walks in the first three innings and handcuffed the hard-hitting Rangers, who began the night leading the majors in batting average (.278) and runs (580). They were shut out for only the third time all season.

A no-hit buzz began to build in the sixth, when second baseman Robinson Cano made a backhand play on Mitch Moreland’s one-out grounder. Kuroda then struck out Ian Kinsler and had retired 10 straight heading into the seventh.

Andrus led off with a grounder toward the middle, forcing shortstop Jayson Nix to make a diving stop near the edge of the outfield grass. With little chance to get the speedy runner, Nix struggled to get the ball out of his glove and tried a desperation throw that was late and wide.

Base hit, no question, and Kuroda received a warm round of applause from the crowd of 44,533. Andrus was stranded at third when Nelson Cruz grounded out.

“When you’ve got a great lineup like that,” Kuroda said through a translator, “you can’t lose your focus until the end.”