Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Each corner should be rotated around the center of the box.

Typically this would be done by translating the box back to the origin, rotating, then translating back to the starting position.

Imagine the points that make up the corners rotating around a circle:

enter image description here

For rotating each point, see this answerthis answer.

Each corner should be rotated around the center of the box.

Typically this would be done by translating the box back to the origin, rotating, then translating back to the starting position.

Imagine the points that make up the corners rotating around a circle:

enter image description here

For rotating each point, see this answer.

Each corner should be rotated around the center of the box.

Typically this would be done by translating the box back to the origin, rotating, then translating back to the starting position.

Imagine the points that make up the corners rotating around a circle:

enter image description here

For rotating each point, see this answer.

added 254 characters in body
Source Link
House
  • 73.3k
  • 17
  • 185
  • 273

Each corner should be rotated around the center of the box.

Typically this would be done by translating the box back to the origin, rotating, then translating back to the starting position.

Imagine the points that make up the corners rotating around a circle:

enter image description here

For rotating each point, see this answer.

Each corner should be rotated around the center of the box.

Typically this would be done by translating the box back to the origin, rotating, then translating back to the starting position.

Each corner should be rotated around the center of the box.

Typically this would be done by translating the box back to the origin, rotating, then translating back to the starting position.

Imagine the points that make up the corners rotating around a circle:

enter image description here

For rotating each point, see this answer.

Source Link
House
  • 73.3k
  • 17
  • 185
  • 273

Each corner should be rotated around the center of the box.

Typically this would be done by translating the box back to the origin, rotating, then translating back to the starting position.