docstr: Tests if vector slerp reduces to lerp for identical vectors as input.
docstr_tok: ["Tests","if","vector","slerp","reduces","to","lerp","for","identical","vectors","as","input","."]
code: def test_vector_weights_reduce_to_lerp_preset(self):
      """Tests if vector slerp reduces to lerp for identical vectors as input."""
      q1 = tf.constant((_SQRT2_DIV2, 0.0, _SQRT2_DIV2, 0.0))
      q2 = tf.constant((_SQRT2_DIV2, 0.0, _SQRT2_DIV2, 0.0))
      p = tf.constant((0.75,), dtype=q1.dtype)
  
      w1, w2 = slerp.vector_weights(q1, q2, p)
  
      self.assertAllClose(w1, (0.25,), rtol=1e-6)
      self.assertAllClose(w2, (0.75,), rtol=1e-6)
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.math.interpolation import slerp
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 15 for calling the SlerpTest obj's underlying member method code with example usage: obj.test_vector_weights_reduce_to_lerp_preset() without return types