Open Dev Kit Documentation :: General :: 2D Vector :: Scale Aspect
Root.Vector2.ScaleAspect( Vector 2D Vector, Scalar 2D Vector ) 2D VectorReturns the vector scaled to fit inside the specified vector
Parameters
- Vector 2D Vector
- The vector to scale
- Scalar 2D Vector
- The vector to scale to; the result will at least have one of the components of this vector
Return Value
Lua Usage
local value2DVector = value2DVector:ScaleAspect(vector, scalar)
If you think anything is missing, please feel free to: submit documentation feedback on this page
