CoordinateAxis

class wpimath.geometry.CoordinateAxis(x: float, y: float, z: float)

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.geometry._geometry.CoordinateAxis

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

static E() wpimath.geometry._geometry.CoordinateAxis

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

static N() wpimath.geometry._geometry.CoordinateAxis

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

static S() wpimath.geometry._geometry.CoordinateAxis

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

static U() wpimath.geometry._geometry.CoordinateAxis

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

static W() wpimath.geometry._geometry.CoordinateAxis

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