Class YMath.v2d
Defined in: YMath.js.
Constructor Attributes | Constructor Name and Description |
---|---|
YMath.v2d utilities Not instanciable.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
YMath.v2d.add(vxyA, vxyB)
|
<static> |
YMath.v2d.bezier(vlist, perc)
|
<static> |
YMath.v2d.cartToPol(x, y)
|
<static> |
YMath.v2d.extrapolate(vxyzA, vxyzB, perc)
|
<static> |
YMath.v2d.fit(size_from, size_to, outside, domElement)
|
<static> |
YMath.v2d.fitInside(size_from, size_to, domElement)
|
<static> |
YMath.v2d.fitOutside(size_from, size_to, domElement)
|
<static> |
YMath.v2d.length(x, y)
|
<static> |
YMath.v2d.mult(vxy, factor)
|
<static> |
YMath.v2d.normalise(vxy)
|
<static> |
YMath.v2d.polToCart(angle, length)
|
<static> |
YMath.v2d.to(vxyA, vxyB)
|
Method Detail
<static>
{array[2]}
YMath.v2d.add(vxyA, vxyB)
- Parameters:
- {array[2]} vxyA
- {array[2]} vxyB
- Returns:
- {array[2]} vxyA+vxyB
<static>
YMath.v2d.bezier(vlist, perc)
- Parameters:
- vlist
- perc
<static>
YMath.v2d.cartToPol(x, y)
- Parameters:
- x
- y
<static>
YMath.v2d.extrapolate(vxyzA, vxyzB, perc)
- Parameters:
- vxyzA
- vxyzB
- perc
<static>
YMath.v2d.fit(size_from, size_to, outside, domElement)
- Parameters:
- size_from
- size_to
- outside
- domElement
<static>
YMath.v2d.fitInside(size_from, size_to, domElement)
- Parameters:
- size_from
- size_to
- domElement
<static>
YMath.v2d.fitOutside(size_from, size_to, domElement)
- Parameters:
- size_from
- size_to
- domElement
<static>
YMath.v2d.length(x, y)
- Parameters:
- x
- y
<static>
{array[2]}
YMath.v2d.mult(vxy, factor)
- Parameters:
- {array[2]} vxy
- {number} factor
- Returns:
- {array[2]} factor*vxy
<static>
YMath.v2d.normalise(vxy)
- Parameters:
- vxy
<static>
YMath.v2d.polToCart(angle, length)
- Parameters:
- angle
- length
<static>
{array[2]}
YMath.v2d.to(vxyA, vxyB)
- Parameters:
- {array[2]} vxyA
- {array[2]} vxyB
- Returns:
- {array[2]} vxyA-vxyB