Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / helpers / ObjectSticker.java @ 198c5bf0

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2021 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// Magic Cube is free software: you can redistribute it and/or modify                            //
7
// it under the terms of the GNU General Public License as published by                          //
8
// the Free Software Foundation, either version 2 of the License, or                             //
9
// (at your option) any later version.                                                           //
10
//                                                                                               //
11
// Magic Cube is distributed in the hope that it will be useful,                                 //
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14
// GNU General Public License for more details.                                                  //
15
//                                                                                               //
16
// You should have received a copy of the GNU General Public License                             //
17
// along with Magic Cube.  If not, see <http://www.gnu.org/licenses/>.                           //
18
///////////////////////////////////////////////////////////////////////////////////////////////////
19

    
20
package org.distorted.objectlib.helpers;
21

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

    
24
public class ObjectSticker
25
  {
26
  private final float[] mCoords;
27
  private final float[] mCurvature;
28
  private final float[] mRadii;
29
  private final float mStroke;
30

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

    
33
  public ObjectSticker(float[] coords, float[] curvature, float[] radii, float stroke)
34
    {
35
    mCoords    = coords;
36
    mCurvature = curvature;
37
    mRadii     = radii;
38
    mStroke    = stroke;
39
    }
40

    
41
///////////////////////////////////////////////////////////////////////////////////////////////////
42

    
43
  public float[] getCoords()
44
    {
45
    return mCoords;
46
    }
47

    
48
///////////////////////////////////////////////////////////////////////////////////////////////////
49

    
50
  public float[] getCurvature()
51
    {
52
    return mCurvature;
53
    }
54

    
55
///////////////////////////////////////////////////////////////////////////////////////////////////
56

    
57
  public float[] getRadii()
58
    {
59
    return mRadii;
60
    }
61

    
62
///////////////////////////////////////////////////////////////////////////////////////////////////
63

    
64
  public float getStroke()
65
    {
66
    return mStroke;
67
    }
68
  }
(6-6/11)