#include <Scale.h>
|
static Scale | zero () |
static Scale | unit () |
static Scale | sum (Scale a, Scale b) |
static Scale | sub (Scale a, Scale b) |
static Scale | intermediate (Scale a, Scale b) |
static Scale | product (Scale a, Scale b) |
static Scale | division (Scale a, Scale b) |
static Scale | scalarProduct (Scale scale, int16 scalar) |
static Scale | scalarDivision (Scale scale, int16 scalar) |
static Scale | getFromScreenPixelScale (ScreenPixelScale screenPixelScale) |
static bool | areEqual (Scale a, Scale b) |
static void | print (Scale scale, int32 x, int32 y) |
Class Scale
Inherits from Object
Implements methods to operate on Scale structs.
Definition at line 29 of file Scale.h.
# areEqual()
Test if two scales are equal.
- Parameters
-
a | First scale |
b | Second scale |
- Returns
- True if all the components of both scales are equal; false otherwise
Definition at line 187 of file Scale.h.
# division()
Compute the division scale between two provided scales.
- Parameters
-
a | Dividend scale |
b | Divisor scale |
- Returns
- Division scale between the provided scales
Definition at line 154 of file Scale.h.
# getFromScreenPixelScale()
Transform the provided scale in screen coordinates into a normal 3D scale.
- Parameters
-
screenPixelScale | Scale to transform |
- Returns
- 3D scale
Definition at line 180 of file Scale.h.
# intermediate()
Compute the intermediate scale between two provided scales.
- Parameters
-
a | First scale |
b | Second scale |
- Returns
- Intermediate scale between the provided scales
Definition at line 135 of file Scale.h.
# print()
Print the scale's components.
- Parameters
-
scale | Scale to print |
x | Screen x coordinate where to print |
y | Screen y coordinate where to print |
Definition at line 25 of file Scale.c.
# product()
Compute the product scale between two provided scales.
- Parameters
-
a | First scale |
b | Second scale |
- Returns
- Product scale between the provided scales
Definition at line 147 of file Scale.h.
# scalarDivision()
Apply a scalar product over the scale's components
- Parameters
-
scale | Scale to scale |
scalar | Scalar divisor |
- Returns
- Scaled scale
Definition at line 168 of file Scale.h.
# scalarProduct()
Apply a scalar product over the scale's components
- Parameters
-
scale | Scale to scale |
scalar | Scalar to multiply |
- Returns
- Scaled scale
Definition at line 161 of file Scale.h.
# sub()
Compute the difference scale between two provided scales.
- Parameters
-
a | Minuend scale |
b | Substraend scale |
- Returns
- Difference scale between the provided scales
Definition at line 128 of file Scale.h.
# sum()
Compute the addition scale between other two provided scales.
- Parameters
-
a | First scale |
b | Second scale |
- Returns
- Addition scale between the provided scales
Definition at line 121 of file Scale.h.
# unit()
static Scale Scale::unit |
( |
| ) |
|
|
inlinestatic |
Get a unit scale with all its members are initialized to 1.
- Returns
- Unit scale
Definition at line 114 of file Scale.h.
# zero()
static Scale Scale::zero |
( |
| ) |
|
|
inlinestatic |
Get a scale with all its members initialized to zero.
- Returns
- Scale with all its members initialized to zero
The documentation for this struct was generated from the following files:
- VUEngine-Core/source/Misc/Math/Scale.h
- VUEngine-Core/source/Misc/Types.h
- VUEngine-Core/source/Misc/Math/Scale.c