init(r:theta:)
Creates a new vector in polar coordinate space.
Declaration
convenience init(r: Double, theta: Double)Parameters
- r:
The length of the vector.
- theta:
The angle that the vector forms with the positive direction of the x-axis.
Creates a new vector in polar coordinate space.
convenience init(r: Double, theta: Double)The length of the vector.
The angle that the vector forms with the positive direction of the x-axis.