Point2<Type> Function

Creates a point that stores its coordinates using the specified data type.

template<typename Type>
typename TypeTraits<Type>::Point Point2(
  Type x,
  Type y
);

Template Parameters

Parameter Description
Type The data type used to store the x-coordinate and y-coordinate of the point. Possible values are FLOAT and UINT32.

Parameters

Parameter Description
x The x-coordinate of the point.
y The y-coordinate of the point.

Return Value

A point that contains the specified x-coordinate and y-coordinate.

Requirements

Requirement Value
Minimum supported client
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Minimum supported phone
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]
Header
D2d1helper.h
Library
D2d1.lib
DLL
D2d1.dll