DoopelPonger
Static Public Member Functions | List of all members
Vector3Utils Class Reference

Collection of functions around the Vector3 object. More...

Static Public Member Functions

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...
 

Detailed Description

Collection of functions around the Vector3 object.

Member Function Documentation

◆ ConvertToString()

static string Vector3Utils.ConvertToString ( Vector3  vect3)
static

Convert the Vector3 to a string.

Parameters
vect3The 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
propertyStringThe 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
centerPositionThe center of the object.
initialScaleThe initial scale of the object.
initialEdgePositionThe position of the edge with the initialScale and centerPosition.
desiredEdgePositionThe 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
startThe starting values.
endThe ending values.
timeThe time from 0 to 1.
Returns
The smoothed values.

The documentation for this class was generated from the following file: