shz_vec4_scale
SHZ_INLINE shz_vec4_t shz_vec4_scale(shz_vec4_t vec, float factor) SHZ_NOEXCEPT;Returns a 4D vector whose component values are those of the given vector multiplied by a factor.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
vec | shz_vec4_t | |
factor | float |
Returns
Section titled “Returns”shz_vec4_t
Availability
Section titled “Availability”- C++ equivalent: none (call the C function from C++)
- Type-generic form:
shz_vec_scale() - Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_vector.h:395 - Module: Vector, section "Arithmetic"