Collection of functions around the Vector3 object.
More...
|
static Vector3 | VectorSmoothStep (Vector3 start, Vector3 end, float time) |
| Apply the Mathf.SmoothStep to all the components of the Vector3. More...
|
|
static Vector3 | GetDesiredScale (Vector3 centerPosition, Vector3 initialScale, Vector3 initialEdgePosition, Vector3 desiredEdgePosition) |
| Given an initial position and scale, return a new scale that the object would need to have in order to overlap the edge with the given position. More...
|
|
static string | ConvertToString (Vector3 vect3) |
| Convert the Vector3 to a string. More...
|
|
static Vector3 | CreateVector3FromString (string propertyString) |
| Convert a string, generated from the ConvertToString method, back to a Vector3. More...
|
|
Collection of functions around the Vector3 object.
◆ ConvertToString()
static string Vector3Utils.ConvertToString |
( |
Vector3 |
vect3 | ) |
|
|
static |
Convert the Vector3 to a string.
- Parameters
-
vect3 | The Vector3 that should be converted. |
- Returns
- A string with the x y z components of the provided Vector3.
◆ CreateVector3FromString()
static Vector3 Vector3Utils.CreateVector3FromString |
( |
string |
propertyString | ) |
|
|
static |
Convert a string, generated from the ConvertToString method, back to a Vector3.
- Parameters
-
propertyString | The string to convert to a Vector3 |
- Returns
- The Vector3
◆ GetDesiredScale()
static Vector3 Vector3Utils.GetDesiredScale |
( |
Vector3 |
centerPosition, |
|
|
Vector3 |
initialScale, |
|
|
Vector3 |
initialEdgePosition, |
|
|
Vector3 |
desiredEdgePosition |
|
) |
| |
|
static |
Given an initial position and scale, return a new scale that the object would need to have in order to overlap the edge with the given position.
- Parameters
-
centerPosition | The center of the object. |
initialScale | The initial scale of the object. |
initialEdgePosition | The position of the edge with the initialScale and centerPosition. |
desiredEdgePosition | The position that the edge should stop at. |
- Returns
- The scale that the object should have if it wants to touch the desiredEdgePosition.
◆ VectorSmoothStep()
static Vector3 Vector3Utils.VectorSmoothStep |
( |
Vector3 |
start, |
|
|
Vector3 |
end, |
|
|
float |
time |
|
) |
| |
|
static |
Apply the Mathf.SmoothStep to all the components of the Vector3.
- Parameters
-
start | The starting values. |
end | The ending values. |
time | The time from 0 to 1. |
- Returns
- The smoothed values.
The documentation for this class was generated from the following file: