Cartesian coordinates

From DmWiki

This article is a stub. You can help improve the article by expanding it.


Table of contents

Definition

The Cartesian coordinate system is the one that is familiar for most people. To describe a point the distance in horizontal, vertical and depth directions are used. The axes that define Cartesian coordinates can be placed almost anywhere, and in fact, do not need to be perpendicular to each other. For more information about the various Cartesian coordinate systems used in games, see coordinate systems.

Conversion from cylindrical coordinates

To convert from cylindrical coordinates to Cartesian coordinates use the following:

  • x = rcosθ
  • y = rsinθ
  • z = z

Conversion from spherical coordinates

To convert from spherical coordinates use the following:

  • x = rcosθsinφ
  • y = rsinθsinφ
  • z = rcosφ

Why is it useful?


DevMaster navigation