CGAffineTransform: d property
The d property is the number in the second row, second column of the matrix. When there is only scaling, it is the vertical multiple.
Value
A number; a ratio with no unit. Its position in the matrix:
| a b 0 |
| c d 0 |
| tx ty 1 |- Read-only. Assigning to it throws
TypeError: d is read-only: structs are values, assign a whole new one instead.
Examples
js
const t = CGAffineTransform.scale(2, 3).concat(CGAffineTransform.translation(10, 20));
console.log(t.d);Result: logs 3.
Corresponding iOS API
The C struct field CGAffineTransform.d.
See also
CGAffineTransform()- Structs: rules shared by all structs