Material.magnetRadial()¶
Description¶
Material for a magnet with radial magnetization.
Syntax¶
JS
Material.magnetRadial(direction: Number = Magnetization.From, center: point = Qt.point(0, 0), segmentRadiuses: Array<Number> = []) -> MagnetRadialMaterial
Parameters¶
| Parameter | Type | Default Value | Required | Description | 
|---|---|---|---|---|
| direction | Number | Magnetization.From | ❌ | Magnetization direction. | 
| center | point | Qt.point(0, 0) | ❌ | Magnetization center. | 
| segmentRadiuses | Array<Number> | [] | ❌ | Array of segment radii for the magnet. | 
Return value¶
| Type | Description | 
|---|---|
| MagnetRadialMaterial | Object of type MagnetRadialMaterial. | 
Example¶
| JS | |
|---|---|
See also