Skip to content

et_scaleVec3f

DeveloperGY edited this page Apr 17, 2023 · 2 revisions

Signature

et_Vec3f et_scaleVec3f(et_Vec3f v, float s);

Parameters

et_Vec3f v: The vector to scale
float s: The value to scale by

Return Value

et_Vec3f: The scaled vector

Description

Scales a vector by a specified magnitude based on the origin

Uses

This is used to scale a vector by the scale value specified

Example

et_Vec3f vec = et_genVec3f(3, 4 ,5);
vec = et_scaleVec3f(vec, 5.0f);

Clone this wiki locally