CameraIntrinsics.ProjectOntoFrame(Vector3) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Projects a camera space point into screen space pixel coordinates.
public:
virtual Point ProjectOntoFrame(float3 coordinate) = ProjectOntoFrame;
Point ProjectOntoFrame(float3 const& coordinate);
public Point ProjectOntoFrame(Vector3 coordinate);
function projectOntoFrame(coordinate)
Public Function ProjectOntoFrame (coordinate As Vector3) As Point
Parameters
Returns
The screen space pixel coordinates.
Remarks
The 3D coordinate must be expressed in meters, using a left-handed coordinate system, with +X pointing right, +Y pointing up, and +Z pointing forward out from the camera through the center (principal point) of the image. The resulting 2D coordinate will be expressed in pixels, with the origin in the top-left corner of the image; that is, +X pointing right, and +Y pointing down.