mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 09:03:29 +00:00
16 lines
466 B
JavaScript
16 lines
466 B
JavaScript
|
/**
|
||
|
* Get the angle of the curves entry point.
|
||
|
*
|
||
|
* @param {Phaser.Point|Object} point - The Phaser.Point object, or an Object with public `x` and `y` properties, in which the tangent vector values will be stored.
|
||
|
* @return {Phaser.Point} A Point object containing the tangent vector of this Hermite curve.
|
||
|
*/
|
||
|
var GetEntryTangent = function (curve, point)
|
||
|
{
|
||
|
point.x = curve._v1x;
|
||
|
point.y = curve._v1y;
|
||
|
|
||
|
return point;
|
||
|
};
|
||
|
|
||
|
module.exports = GetEntryTangent;
|