Vector2 Constructors
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.
Overloads
Vector2(Vector2) |
Obsolete.
Constructs a new Vector2 from the given Vector2. |
Vector2(Vector3) |
Obsolete.
Constructs a new Vector2 from the given Vector3. |
Vector2(Vector4) |
Obsolete.
Constructs a new Vector2 from the given Vector4. |
Vector2(Single) | |
Vector2(Single, Single) |
Constructs a new Vector2. |
Vector2(Vector2)
Caution
This API is now deprecated.
Constructs a new Vector2 from the given Vector2.
[System.Obsolete]
public Vector2 (OpenTK.Vector2 v);
new OpenTK.Vector2 : OpenTK.Vector2 -> OpenTK.Vector2
Parameters
- v
- Vector2
The Vector2 to copy components from.
- Attributes
Applies to
Vector2(Vector3)
Caution
This API is now deprecated.
Constructs a new Vector2 from the given Vector3.
[System.Obsolete]
public Vector2 (OpenTK.Vector3 v);
new OpenTK.Vector2 : OpenTK.Vector3 -> OpenTK.Vector2
Parameters
- v
- Vector3
The Vector3 to copy components from. Z is discarded.
- Attributes
Applies to
Vector2(Vector4)
Caution
This API is now deprecated.
Constructs a new Vector2 from the given Vector4.
[System.Obsolete]
public Vector2 (OpenTK.Vector4 v);
new OpenTK.Vector2 : OpenTK.Vector4 -> OpenTK.Vector2
Parameters
- v
- Vector4
The Vector4 to copy components from. Z and W are discarded.
- Attributes
Applies to
Vector2(Single)
public Vector2 (float value);
new OpenTK.Vector2 : single -> OpenTK.Vector2
Parameters
- value
- Single