Skip to content

Main content

Vector Coordinate Axis Permutation Tool

Permute a vector using an explicit zero-based destination-to-source axis permutation; the empty vector is allowed.

Loading tool…

Description

Select coordinates in permutation order.

A vector has ordered coordinates. Its length and direction are different properties: scaling changes length, while normalization retains direction when the vector is nonzero. Coordinate order and the chosen axes determine the interpretation.

Select coordinates in permutation order.

When to use this tool

Use Vector Coordinate Axis Permutation when you need a small coordinate transformation or a direction calculation under an explicit axis convention.

How to use the tool and how it works

  1. Enter coordinates, permutation. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read permuted. Use the output convention below.

Require equal coordinate and permutation lengths with each index unique and within bounds. Select coordinates in permutation order.1

Input fieldMeaning and unitsAccepted input
coordinatesCoordinatesRequired. Array of finite number; maximum items 256.
permutationPermutationRequired. Array of safe integer; maximum items 256.
Output fieldInterpretationReturned shape
permutedPermutedRequired. Array of finite number; maximum items 256.
json
{
  "input": {
    "coordinates": [
      10,
      20,
      30
    ],
    "permutation": [
      2,
      0,
      1
    ]
  },
  "output": {
    "permuted": [
      30,
      10,
      20
    ]
  }
}

Limitations and assumptions

  • This rearranges axes without changing units, origin, or handedness metadata; an empty permutation and vector are accepted.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Verify the coordinate system and use a complete transformation matrix when several transformations must be composed.

References

  1. Calculation and input contract: vector/vector-coordinate-axis-permutation — tool.io

Similar or alternative tools