---
UID: NF:directxmath.XMINT2.XMINT2(int32_t,int32_t)
title: XMINT2::XMINT2(int32_t,int32_t) (directxmath.h)
description: Initializes a new instance of XMINT2 from two int32_t arguments.
old-location: dxmath\xmint2_ctor_2.htm
tech.root: dxmath
ms.assetid: M:Microsoft.directx_sdk.reference.XMINT2.#ctor(int32_t,int32_t)
ms.date: 12/05/2018
ms.keywords: XMINT2, XMINT2 constructor [DirectX Math Support APIs], XMINT2 constructor [DirectX Math Support APIs],XMINT2 structure, XMINT2 structure [DirectX Math Support APIs],XMINT2 constructor, XMINT2.XMINT2, XMINT2.XMINT2(int32_t,int32_t), XMINT2::XMINT2, XMINT2::XMINT2(int32_t,int32_t), dxmath.xmint2_ctor_2
f1_keywords:
- directxmath/XMINT2.XMINT2
dev_langs:
- c++
req.header: directxmath.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: Use DirectX.
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- DirectXMath.h
api_name:
- XMINT2.XMINT2
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# XMINT2::XMINT2(int32_t,int32_t)


## -description


Initializes a new instance of <code>XMINT2</code> from two <code>int32_t</code> arguments.
    

This constructor initializes a new instance of <a href="https://docs.microsoft.com/windows/desktop/api/directxmath/ns-directxmath-xmint2">XMINT2</a> from two
	<code>int32_t</code> arguments.
<div class="alert"><b>Note</b>  This constructor is only available under C++.
    </div><div> </div>

## -parameters




### -param _x

Value of the x-coordinate of the vector, the <b>x</b> member of the new
		    <code>XMINT2</code> instance.
		


### -param _y

Value of the y-coordinate of the vector, the <b>y</b> member of the new
		    <code>XMINT2</code> instance.
		


## -see-also




<b>Reference</b>



<a href="https://docs.microsoft.com/windows/desktop/api/directxmath/ns-directxmath-xmint2">XMINT2</a>



<a href="https://docs.microsoft.com/windows/desktop/api/directxmath/nf-directxmath-xmint2-xmint2(constint32_t)">XMINT2 Constructors</a>
 

 

