Class: DefPolarCoord

algeobra~DefPolarCoord(params)

Definition of a polar coordinate defined by a radius ang angle

Constructor

new DefPolarCoord(params)

Default values
Parameters:
Name Type Description
params Object
Properties
Name Type Description
r Number The radius
alpha Number The angle
Source:

Methods

compute(createInfo) → {Object}

Compute the polar coordinates
Parameters:
Name Type Description
createInfo CreateInfo The creation info
Source:
Returns:
A polar coordinate of type TYPE_POLAR
Type
Object

(static) fromPointOrVector(p) → {CreateInfo}

Creates polar coordinates of a point
Parameters:
Name Type Description
p Number | Object Either the index or value of a TYPE_POINT. The point
Source:
Returns:
The creation info
Type
CreateInfo

(static) fromValues(params) → {CreateInfo}

Creates an angle from three points. The angle is measured around the middle one. The reference point is placed at the middle point
Parameters:
Name Type Description
params Object
Properties
Name Type Attributes Description
r Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The radius
alpha Number | Object <optional>
Either the index or value of a TYPE_NUMBER. The angle
Source:
Returns:
The creation info
Type
CreateInfo