Typedef
| Static Public Summary | ||
| public |
Coordinate system: |
|
| public |
Coordinates: vec3 Coordinates as an array of 3 values: [x, y, z] or [azimuth, elevation, distance], depending on system |
|
| public |
|
|
| public |
SOFA cartesian coordinate system: |
|
| public |
SOFA spherical coordinate system: |
|
| public |
Spat4 cartesian coordinate system: |
|
| public |
Spat4 spherical coordinate system: |
|
Static Public
public CoordinateSystem: String source
Coordinate system: gl, sofaCartesian, sofaSpherical,
spat4Cartesian, or spat4Spherical.
public Coordinates: vec3 source
Coordinates as an array of 3 values: [x, y, z] or [azimuth, elevation, distance], depending on system
public HrtfSet.nearestType: Object source
Properties:
| Name | Type | Attribute | Description |
| distance | Number | from the request |
|
| fir | AudioBuffer | 2-channels impulse response |
|
| index | Number | original index in the SOFA set |
|
| position | Coordinates | using coordinateSystem coordinates system. |
public SofaCartesian: Coordinates source
SOFA cartesian coordinate system: sofaCartesian.
SOFA distances are in metres.
SOFA +z +x openGL +y
| / |
|/ |
+y ----o o---- +x
/
/
+z
SOFA.x = -openGL.z openGL.x = -SOFA.y
SOFA.y = -openGL.x openGL.y = SOFA.z
SOFA.z = openGL.y openGL.z = -SOFA.x
public SofaSpherical: Coordinates source
SOFA spherical coordinate system: sofaSpherical.
SOFA angles are in degrees.
SOFA.azimuth = atan2(SOFA.y, SOFA.x) SOFA.elevation = atan2(SOFA.z, sqrt(SOFA.x SOFA.x + SOFA.y SOFA.y) ); SOFA.distance = sqrt(SOFA.x SOFA.x + SOFA.y SOFA.y + SOFA.z * SOFA.z)
public Spat4Cartesian: Coordinates source
Spat4 cartesian coordinate system: spat4Cartesian.
Spat4 distances are in metres.
Spat4 +z +y openGL +y
| / |
|/ |
o---- +x o---- +x
/
/
+z
Spat4.x = openGL.x openGL.x = Spat4.x
Spat4.y = -openGL.z openGL.y = Spat4.z
Spat4.z = openGL.y openGL.z = -Spat4.y
public Spat4Spherical: Coordinates source
Spat4 spherical coordinate system: spat4Spherical.
Spat4 angles are in degrees.
Spat4.azimuth = atan2(Spat4.x, Spat4.y) Spat4.elevation = atan2(Spat4.z, sqrt(Spat4.x Spat4.x + Spat4.y Spat4.y) ); Spat4.distance = sqrt(Spat4.x Spat4.x + Spat4.y Spat4.y + Spat4.z * Spat4.z)