最近在看原始碼的時候,看到這樣的幾個進行座標系轉換的函式。convertToNodeSpace、convertToWorldSpace、convertToNodeSpaceAR、convertToWorldSpaceAR,在他們的下一層看到下面的註釋:
/**
* Converts a Point to node (local) space coordinates. The result is in Points.
*/
Point convertToNodeSpace(const Point& worldPoint) const;
* Converts a Point to world space coordinates. The result is in Points.
Point convertToWorldSpace(const Point& nodePoint) const;
* treating the returned/received node point as anchor relative.
Point convertToNodeSpaceAR(const Point& worldPoint) const;
最近在看原始碼的時候,看到這樣的幾個進行座標系轉換的函式。convertToNodeSpace、convertToWorldSpace、convertToNodeSpaceAR、convertToWorldSpaceAR,在他們的下一層看到下面的註釋:
/**
* Converts a Point to node (local) space coordinates. The result is in Points.
*/
Point convertToNodeSpace(const Point& worldPoint) const;
/**
* Converts a Point to world space coordinates. The result is in Points.
*/
Point convertToWorldSpace(const Point& nodePoint) const;
/**
* Converts a Point to node (local) space coordinates. The result is in Points.
* treating the returned/received node point as anchor relative.
*/
Point convertToNodeSpaceAR(const Point& worldPoint) const;
/**