PixelVector Struct Reference
#include <PixelVector.h>

# Public Attributes | |
int16 | x |
int16 | y |
int16 | z |
int16 | parallax |
# Additional Inherited Members | |
![]() | |
void | constructor () |
Class' constructor. | |
const void * | getVTable () |
bool | mutateTo (const void *targetClass) |
![]() | |
static Object | getCast (void *object, ClassPointer targetClassGetClassMethod, ClassPointer baseClassGetClassMethod) |
![]() | |
void * | vTable |
Pointer to the class's virtual table. |
# Detailed Description
Class PixelVector
Inherits from Object
Implements methods to operate on PixelVector structs.
Definition at line 30 of file PixelVector.h.
# Member Function Documentation
# get()
|
inlinestatic |
Get the difference vector between two provided vectors.
- Parameters
-
from Start vector to End vector
- Returns
- Difference vector between the provided vectors
Definition at line 140 of file PixelVector.h.
# getFromScreenPixelVector()
|
inlinestatic |
Transform the provided vector in screen coordinates into a normal pixel vector.
- Parameters
-
screenPixelVector Vector to transform parallax Parallax component for the resulting vector
- Returns
- Vector in pixel units
Definition at line 174 of file PixelVector.h.
# getFromVector2D()
|
inlinestatic |
Transform the provided 2D vector in meter coordinates into a normal pixel vector.
- Parameters
-
vector2D 2D vector to transform parallax Parallax component for the resulting vector
- Returns
- Vector in pixel units
Definition at line 187 of file PixelVector.h.
# getFromVector3D()
|
inlinestatic |
Transform the provided 2D vector in meter coordinates into a normal pixel vector.
- Parameters
-
vector3D 3D vector to transform parallax Parallax component for the resulting vector
- Returns
- Vector in pixel units
Definition at line 200 of file PixelVector.h.
# getRelativeToCamera()
|
inlinestatic |
Compute the vector relative to the camera's position.
- Parameters
-
vector Vector to compute the relative vector of
- Returns
- Vector relative to the camera's position
Definition at line 213 of file PixelVector.h.
# intermediate()
|
inlinestatic |
Compute the intermediate vector between two provided vectors.
- Parameters
-
a First vector b Second vector
- Returns
- Intermediate vector between the provided vectors
Definition at line 161 of file PixelVector.h.
# isVector3DVisible()
|
inlinestatic |
Test if the provided 3D vector is within the provided right box
- Parameters
-
vector 3D vector to test pixelRightBox Bounding box padding Padding to be added to the bounding box
- Returns
- True if the part of the vector is inside the bounding box; false otherwise
Definition at line 341 of file PixelVector.h.
# isVisible()
|
inlinestatic |
Test if the provided vector is within the provided right box
- Parameters
-
vector Vector to test pixelRightBox Bounding box padding Padding to be added to the bounding box
- Returns
- True if the part of the vector is inside the bounding box; false otherwise
Definition at line 311 of file PixelVector.h.
# length()
|
inlinestatic |
Compute the length of the provided vector.
- Parameters
-
vector Vector to compute the length of
- Returns
- Length of the provided vector
Definition at line 297 of file PixelVector.h.
# print()
|
inlinestatic |
Print the vector's components.
- Parameters
-
vector Vector to print x Screen x coordinate where to print y Screen y coordinate where to print
Definition at line 25 of file PixelVector.c.
# projectVector3D()
|
inlinestatic |
Project the 3D vector to a vector in pixel units.
- Parameters
-
vector3D 3D vector to project parallax Parallax component for the resulting vector
- Returns
- Projected vector in pixel units
Definition at line 226 of file PixelVector.h.
# squareLength()
|
inlinestatic |
Compute the squared length of the provided vector.
- Parameters
-
vector Vector to compute the square length of
- Returns
- Square length of the provided vector
Definition at line 304 of file PixelVector.h.
# sub()
|
inlinestatic |
Compute the difference vector between two provided vectors.
- Parameters
-
a End vector b Start vector
- Returns
- Difference vector between the provided vectors
Definition at line 154 of file PixelVector.h.
# sum()
|
inlinestatic |
Compute the addition vector between other two provided vectors.
- Parameters
-
a First vector b Second vector
- Returns
- Addition vector between the provided vectors
Definition at line 147 of file PixelVector.h.
# transformVector3D()
|
inlinestatic |
Transform to camera space and project the 3D vector to a vector in pixel units.
- Parameters
-
vector 3D vector to transform
- Returns
- Projected vector in pixel units
Definition at line 288 of file PixelVector.h.
# zero()
|
inlinestatic |
Get a vector with all its members initialized to zero.
- Returns
- Pixel vector with all its members initialized to zero
# Member Data Documentation
# parallax
# x
# y
# z
The documentation for this struct was generated from the following files:
- VUEngine-Core/source/Misc/Math/PixelVector.h
- VUEngine-Core/source/Misc/Types.h
- VUEngine-Core/source/Misc/Math/PixelVector.c