Angle

Angle

{Object} Angle Angle properties of associated object

Constructor

new Angle(start, end, clockwise)

Description:
  • Create an angle
Source:
Properties:
Name Type Attributes Default Description
start number <optional>
0 The start of the angle, in radians; measured from the positive x-axis
end number <optional>
360 The end of the angle, in radians; measured from the positive x-axis
clockwise boolean <optional>
true Path arc clockwise
Parameters:
Name Type Description
start number The angle at which the arc starts in degrees, measured from the positive x-axis
end number The angle at which the arc ends in degrees, measured from the positive x-axis
clockwise boolean Draws the arc clockwise between the start and end angles

Methods

clockwise(value)

Description:
  • Set clockwise
Source:
Parameters:
Name Type Description
value boolean Clockwise; true | false

clockwise() → {boolean}

Description:
  • Get clockwise
Source:
Returns:
Clockwise; true | false
Type
boolean

end(value)

Description:
  • Set end angle
Source:
Parameters:
Name Type Description
value number End angle; in degrees

end() → {number}

Description:
  • Get end angle
Source:
Returns:
End angle; in degrees
Type
number

endInRadians() → {number}

Description:
  • Get end angle in radians
Source:
Returns:
End value; in radians
Type
number

start(value)

Description:
  • Set start angle
Source:
Parameters:
Name Type Description
value number Start angle; in degrees

start() → {number}

Description:
  • Get start angle
Source:
Returns:
Start value; in degrees
Type
number

startInRadians() → {number}

Description:
  • Get start angle in radians
Source:
Returns:
Start value; to radians
Type
number