ListenerOrientation.fromAngle constructor

ListenerOrientation.fromAngle(
  1. double angle
)

Create an instance from angle.

Implementation

ListenerOrientation.fromAngle(final double angle)
    : x1 = sin(angle * pi / 180),
      y1 = cos(angle * pi / 180),
      z1 = 0.0,
      x2 = 0.0,
      y2 = 0.0,
      z2 = 1.0;