Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / helpers / ObjectFaceShape.java @ d2216784

1 3ee1d662 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2021 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6 a7a40b3c Leszek Koltunski
// 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 3ee1d662 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
9
10
package org.distorted.objectlib.helpers;
11
12
///////////////////////////////////////////////////////////////////////////////////////////////////
13
14
public class ObjectFaceShape
15
  {
16
  private final int[] mBandIndices;
17
  private final float[] mConvexityCenter;
18 3bf19410 Leszek Koltunski
  private final float[][] mBands;
19 3ee1d662 Leszek Koltunski
20
///////////////////////////////////////////////////////////////////////////////////////////////////
21
22 84a17011 Leszek Koltunski
  public ObjectFaceShape(float[][] bands, int[] bandIndices, float[] convexityCenter)
23 3ee1d662 Leszek Koltunski
    {
24
    mBands           = bands;
25
    mBandIndices     = bandIndices;
26
    mConvexityCenter = convexityCenter;
27
    }
28
29
///////////////////////////////////////////////////////////////////////////////////////////////////
30
31
  public float[][] getBands()
32
    {
33
    return mBands;
34
    }
35
36
///////////////////////////////////////////////////////////////////////////////////////////////////
37
38
  public int[] getBandIndices()
39
    {
40
    return mBandIndices;
41
    }
42
43
///////////////////////////////////////////////////////////////////////////////////////////////////
44
45
  public float[] getConvexityCenter()
46
    {
47
    return mConvexityCenter;
48
    }
49
  }