# Scale

```cpp
#include <qbruntime/type.h>

struct mobilint::Scale
```

Struct for scale values.

## Attributes

| Member | Description |
| --- | --- |
| [`scale_list`](<#scale-list>) |  |
| [`scale`](<#scale>) |  |
| [`is_uniform`](<#is-uniform>) |  |

### scale\_list

```cpp
std::vector<float> scale_list
```

List of scale values for non-uniform scaling.

### scale

```cpp
float scale
```

Uniform scale value

### is\_uniform

```cpp
bool is_uniform
```

Indicates whether uniform scaling is used.

## Member functions

| Member | Description |
| --- | --- |
| [`operator[]`](<#operator-subscript>) | Returns the scale value at the specified index. |

### operator\[\]

```cpp
float operator[](int i) const
```

Returns the scale value at the specified index.

**Parameters**

- `i` *\[in\]* — Index.

**Returns**

[Scale](<https://docs.mobilint.com/runtime/en/v1.1/api/cpp/scale/index.md>) value.
