JOAL v2.6.0-rc-20250706
JOAL, OpenAL® API Binding for Java™ (public API).
Vec3f.java
Go to the documentation of this file.
1/**
2* Copyright (c) 2010-2023 JogAmp Community. All rights reserved.
3* Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7*
8* -Redistribution of source code must retain the above copyright notice,
9* this list of conditions and the following disclaimer.
10*
11* -Redistribution in binary form must reproduce the above copyright notice,
12* this list of conditions and the following disclaimer in the documentation
13* and/or other materials provided with the distribution.
14*
15* Neither the name of Sun Microsystems, Inc. or the names of contributors may
16* be used to endorse or promote products derived from this software without
17* specific prior written permission.
18*
19* This software is provided "AS IS," without a warranty of any kind.
20* ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
21* ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
22* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MICROSYSTEMS, INC. ("SUN") AND ITS
23* LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A
24* RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
25* IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT
26* OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
27* PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
28* ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS
29* BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
30*
31* You acknowledge that this software is not designed or intended for use in the
32* design, construction, operation or maintenance of any nuclear facility.
33*/
34
35package com.jogamp.openal.sound3d;
36
37/**
38 * A convenience class representing a 3-element float vector
39 *
40 * @author Athomas Goldberg
41 */
42public final class Vec3f {
43 /** the first element in the vector */
44 public final float v1;
45
46 /** the first element in the vector */
47 public final float v2;
48
49 /** the first element in the vector */
50 public final float v3;
51
52 /**
53 * Creates a new Vec3f object.
54 *
55 * @param v1 the first element in the vector
56 * @param v2 the second element in the vector
57 * @param v3 the third element in the vector
58 */
59 public Vec3f(final float v1, final float v2, final float v3) {
60 this.v1 = v1;
61 this.v2 = v2;
62 this.v3 = v3;
63 }
64}
A convenience class representing a 3-element float vector.
Definition: Vec3f.java:42
Vec3f(final float v1, final float v2, final float v3)
Creates a new Vec3f object.
Definition: Vec3f.java:59
final float v3
the first element in the vector
Definition: Vec3f.java:50
final float v2
the first element in the vector
Definition: Vec3f.java:47
final float v1
the first element in the vector
Definition: Vec3f.java:44