getTangent method

  1. @override
dynamic getTangent(
  1. dynamic t, [
  2. dynamic optionalTarget
])
override

Implementation

@override
getTangent(t, [optionalTarget]) {
  var tangent = optionalTarget ?? Vector2(null, null);

  tangent.copy(v2).sub(v1).normalize();

  return tangent;
}