getTangent method

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

Implementation

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

  tangent.copy(vec2).sub(vec1).normalize();

  return tangent;
}