Vince Carter took pleasure in beating Tracy McGrady.

Carter outscored his former teammate by five points as the Toronto Raptors ended Orlando's three-game winning streak with a 106-97 victory over the Magic on Sunday.

"I look forward to playing against him," said Carter, who scored 32 points. "You want to play well just because of who it is. Sometimes with other guys, you know you have to do it, but it really doesn't mean anything."

Carter, guarded by McGrady, made his first six shots on a variety of jumpers and layups, finishing with 15 points in the first quarter as Toronto led 34-16, their biggest first quarter lead of the season.

"He had the home court behind him," McGrady said. "He was pumped and energized. He started off with a hot hand."

McGrady, playing his second game in Toronto since leaving as a free agent two years ago, was booed every time he touched the ball but managed to score 27 points.

Guarded by Jerome Williams, McGrady had three turnovers and just two points in the first quarter.

"I started off a little soft," McGrady said. "The crowd was booing and I was just trying to feel out Jerome, and it took a quarter to feel him out."

Keon Clark added a season-high 20 points, and Antonio Davis had 17 points and 10 rebounds for the Raptors, who have won two straight.

Darrell Armstrong had 20 points, and McGrady added 10 rebounds for the Magic, who never led.

"Vince was fired up," Toronto's Chris Childs said. "He was playing against his relative, he was playing his friend, and a guy that is just as good as he is. He accepted that challenge."

Carter went 13-for-23 from the field. He also had seven rebounds and four assists.

"It's going to be a great rivalry for a long time," Carter said. "We're family and we both want to win. It's fun playing against him."

McGrady played much better in the second quarter, while Carter was in the locker room, getting treatment for an irritated right quadriceps muscle.

McGrady scored 13 points in the second period, starting with a two-handed dunk. But Childs' three-point play gave Toronto a 24-point lead, its biggest of the game.

McGrady helped rally Orlando, and his reverse dunk, blocked shot and two free throws brought the Magic within 13.

Another McGrady dunk pulled Orlando within 11, but Carter hit a jumper, and Alvin Williams made a layup just before the buzzer to give Toronto a 61-46 halftime lead.

"Even though McGrady made a few good moves to the basket with some power dunks, the fans kept booing," Jerome Williams said. "They were outstanding."

McGrady's alley-oop dunk and two free throws narrowed the lead to nine midway through the third quarter. But Carter followed with a tip-in, and Toronto went on a 6-0 run.

Armstrong scored six straight points, and Horace Grant's three-point play narrowed Toronto's lead to nine with 2:05 remaining. Carter's layup gave Toronto a 102-91 lead with 1:48 left.

Clark's layup made it a 13-point lead with just over a minute remaining.

Notes: Toronto C Hakeem Olajuwon left the game in the second quarter with a swollen right knee. He did not return. ... The Raptors shot 53 percent, Orlando 44 percent. ... The Magic beat the Raptors in McGrady's first game back in Toronto last April.