CoordinateAxis

class wpimath.CoordinateAxis(x: SupportsFloat | SupportsIndex, y: SupportsFloat | SupportsIndex, z: SupportsFloat | SupportsIndex)

Bases: pybind11_object

A class representing a coordinate system axis within the NWU coordinate system.

Constructs a coordinate system axis within the NWU coordinate system and normalizes it.

Parameters:
  • x – The x component.

  • y – The y component.

  • z – The z component.

static D() wpimath._wpimath.CoordinateAxis

Returns a coordinate axis corresponding to -Z in the NWU coordinate system.

static E() wpimath._wpimath.CoordinateAxis

Returns a coordinate axis corresponding to -Y in the NWU coordinate system.

static N() wpimath._wpimath.CoordinateAxis

Returns a coordinate axis corresponding to +X in the NWU coordinate system.

static S() wpimath._wpimath.CoordinateAxis

Returns a coordinate axis corresponding to -X in the NWU coordinate system.

static U() wpimath._wpimath.CoordinateAxis

Returns a coordinate axis corresponding to +Z in the NWU coordinate system.

static W() wpimath._wpimath.CoordinateAxis

Returns a coordinate axis corresponding to +Y in the NWU coordinate system.