Note
This class is in the process of being replaced by a standalone library now in development.
Simple rectangle. Will gain more functionality as needed
Structure/Union member
Structure/Union member
Structure/Union member
Structure/Union member
2d vector class, supports vector and scalar operators, and also provides a bunch of high level functions
| Returns: | The cross product |
|---|
| Returns: | The dot product |
|---|
Get the angle between the vector and the other in degrees
| Returns: | The angle |
|---|
The squared distance between the vector and other vector It is more efficent to use this method than to call get_distance() first and then do a sqrt() on the result.
| Returns: | The squared distance |
|---|
Get the squared length of the vector. It is more efficent to use this method instead of first call get_length() or access .length and then do a sqrt().
| Returns: | The squared length |
|---|
Normalize the vector and return its length before the normalization
| Returns: | The length before the normalization |
|---|
Create and return a new vector by rotating this vector by angle_degrees degrees clockwise.
| Returns: | Rotated vector |
|---|
Gets or sets the angle of a vector
Gets or sets the magnitude of the vector
Structure/Union member
Structure/Union member