Vector2 class
Vector2 class
A vector with two components.
The Vector2 type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the Vector2 struct. |
| init | Initializes a new instance of the Vector2 struct. |
| init | Initializes a new instance of the Vector2 struct. |
| init | Initializes a new instance of the Vector2 struct. |
| init | Constructs a new instance of Vector2 |
Properties
| Property | Description |
|---|---|
| u | Gets or sets the U component if the Vector2 is used as a mapping coordinate.It’s an alias of x component. |
| v | Gets or sets the V component if the Vector2 is used as a mapping coordinate.It’s an alias of y component. |
| length | Gets the length. |
Methods
| Method | Description |
|---|---|
| dot | Gets the dot product of two vectors |
| equals | Check if two vector2 equals |
| cross | Cross product of two vectors |
| normalize | Normalizes this instance. |
| compare_to | Compare current vector to another instance. |
See Also
- module
aspose.threed.utilities - class
Vector2