Project

General

Profile

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

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

1
///////////////////////////////////////////////////////////////////////////////////////////////////
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
package org.distorted.objectlib.bandaged;
11

    
12
///////////////////////////////////////////////////////////////////////////////////////////////////
13

    
14
import org.distorted.library.type.Static4D;
15

    
16
public class BandagedElement
17
  {
18
  private final float[] mPos;
19
  private final int mVariant;
20
  private final Static4D mQuat;
21

    
22
///////////////////////////////////////////////////////////////////////////////////////////////////
23

    
24
  BandagedElement(float[] pos, int index, int variant, Static4D quat )
25
    {
26
    mPos = new float[] { pos[index], pos[index+1], pos[index+2] };
27
    mQuat = quat;
28
    mVariant = variant;
29
    }
30

    
31
///////////////////////////////////////////////////////////////////////////////////////////////////
32

    
33
  float[] getPos()
34
    {
35
    return mPos;
36
    }
37

    
38
///////////////////////////////////////////////////////////////////////////////////////////////////
39

    
40
  Static4D getQuat()
41
    {
42
    return mQuat;
43
    }
44

    
45
///////////////////////////////////////////////////////////////////////////////////////////////////
46

    
47
  int getVariant()
48
    {
49
    return mVariant;
50
    }
51
  }
(2-2/15)