Project

General

Profile

Download (1.83 KB) Statistics
| Branch: | Revision:

distorted-objectlib / src / main / java / org / distorted / objectlib / bandaged / BandagedElement.java @ a0ef8a1d

1 c65d5889 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2023 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is proprietary software licensed under an EULA which you should have received      //
7
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html        //
8
///////////////////////////////////////////////////////////////////////////////////////////////////
9
10 db0d3a90 leszek
package org.distorted.objectlib.bandaged;
11 c65d5889 Leszek Koltunski
12
///////////////////////////////////////////////////////////////////////////////////////////////////
13
14 6155e738 leszek
import org.distorted.library.type.Static4D;
15
16 4a9f01f9 leszek
public class BandagedElement
17 c65d5889 Leszek Koltunski
  {
18 c7c72305 leszek
  private final float[] mPos;
19 8e878e7c leszek
  private final int mVariant;
20 6155e738 leszek
  private final Static4D mQuat;
21 c65d5889 Leszek Koltunski
22
///////////////////////////////////////////////////////////////////////////////////////////////////
23
24 6155e738 leszek
  BandagedElement(float[] pos, int index, int variant, Static4D quat )
25 c65d5889 Leszek Koltunski
    {
26 c7c72305 leszek
    mPos = new float[] { pos[index], pos[index+1], pos[index+2] };
27 6155e738 leszek
    mQuat = quat;
28 8e878e7c leszek
    mVariant = variant;
29 c65d5889 Leszek Koltunski
    }
30 c7c72305 leszek
31
///////////////////////////////////////////////////////////////////////////////////////////////////
32
33
  float[] getPos()
34
    {
35
    return mPos;
36
    }
37 8e878e7c leszek
38 6155e738 leszek
///////////////////////////////////////////////////////////////////////////////////////////////////
39
40
  Static4D getQuat()
41
    {
42
    return mQuat;
43
    }
44
45 8e878e7c leszek
///////////////////////////////////////////////////////////////////////////////////////////////////
46
47
  int getVariant()
48
    {
49
    return mVariant;
50
    }
51 c65d5889 Leszek Koltunski
  }