Pular para o conteúdo principal

Vetor3.rotateAroundPivot()

Método de instância em Vector3.

Descrição

  • Rotates this Vector3 around the specified pivot point using the given rotation angles (in degrees) and Retorna the resulting Vector3. |
  • Rotates this Vector3 around the specified pivot point using the given rotation Vector3 (in degrees) and Retorna the resulting Vector3. |
  • Rotates this Vector3 around the specified pivot point using the given Quaternion rotation and Retorna the resulting Vector3. |

Method Signature

rotateAroundPivot(float, float, float, Vector3)
rotateAroundPivot(Vector3, Vector3)
rotateAroundPivot(Quaternion, Vector3)

Mathematical Definition

Component-wise or runtime-defined transformation based on overload.

Parameters

  • float: scalar numeric input.
  • Vector3: 3D vector input.
  • Quaternion: method input parameter.

Retorna

  • Vector3: returned by overloads of this method.

Mutability

  • Does not modify o atual vector unless explicitly using a Local/Equal variant.

Edge Cases

  • Zero vectors can produce degenerate outputs for geometric methods.
  • NaN and Infinity inputs propagate according to IEEE-754 floating-point behavior.
  • Repeated operations may accumulate floating-point precision error.

Usage Example

Vector3 a = new Vector3(1f, 2f, 3f);
// Call the method according to your overload requirements.
// Example:
// a.rotateAroundPivot(...);

Mathematical Example

Example input/output depends on overload; for vector arithmetic operations this is typically computed per-component.

Visualization