mirror of
https://github.com/photonstorm/phaser
synced 2024-12-19 09:34:02 +00:00
15 lines
466 B
JavaScript
15 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;
|