1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.hipparchus.geometry;
23
24 import java.util.Locale;
25
26 import org.hipparchus.exception.Localizable;
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 public enum LocalizedGeometryFormats implements Localizable {
43
44
45 CANNOT_NORMALIZE_A_ZERO_NORM_VECTOR("cannot normalize a zero norm vector"),
46
47
48 CLOSE_VERTICES("too close vertices near point ({0}, {1}, {2})"),
49
50
51 CLOSEST_ORTHOGONAL_MATRIX_HAS_NEGATIVE_DETERMINANT("the closest orthogonal matrix has a negative determinant {0}"),
52
53
54 CROSSING_BOUNDARY_LOOPS("some outline boundary loops cross each other"),
55
56
57 EDGE_CONNECTED_TO_ONE_FACET("edge joining points ({0}, {1}, {2}) and ({3}, {4}, {5}) is connected to one facet only"),
58
59
60 FACET_ORIENTATION_MISMATCH("facets orientation mismatch around edge joining points ({0}, {1}, {2}) and ({3}, {4}, {5})"),
61
62
63 INCONSISTENT_STATE_AT_2_PI_WRAPPING("inconsistent state at 2π wrapping"),
64
65
66 NON_INVERTIBLE_TRANSFORM("non-invertible affine transform collapses some lines into single points"),
67
68
69 NOT_CONVEX("vertices do not form a convex hull in CCW winding"),
70
71
72 NOT_CONVEX_HYPERPLANES("hyperplanes do not define a convex region"),
73
74
75 NOT_SUPPORTED_IN_DIMENSION_N("method not supported in dimension {0}"),
76
77
78 OUTLINE_BOUNDARY_LOOP_OPEN("an outline boundary loop is open"),
79
80
81 FACET_WITH_SEVERAL_BOUNDARY_LOOPS("a facet has several boundary loops"),
82
83
84 OUT_OF_PLANE("point ({0}, {1}, {2}) is out of plane"),
85
86
87 ROTATION_MATRIX_DIMENSIONS("a {0}x{1} matrix cannot be a rotation matrix"),
88
89
90 UNABLE_TO_ORTHOGONOLIZE_MATRIX("unable to orthogonalize matrix in {0} iterations"),
91
92
93 ZERO_NORM_FOR_ROTATION_AXIS("zero norm for rotation axis"),
94
95
96 ZERO_NORM_FOR_ROTATION_DEFINING_VECTOR("zero norm for rotation defining vector"),
97
98
99 TOO_SMALL_TOLERANCE("tolerance {0,number,0.00000E00} is not computationally feasible, it is smaller than {1} ({2,number,0.00000E00})"),
100
101
102 INVALID_ROTATION_ORDER_NAME("the value {0} does not correspond to a rotation order"),
103
104
105
106
107 CANNOT_FIND_INSIDE_POINT("cannot find an inside point after {0} iterations");
108
109
110 private final String sourceFormat;
111
112
113
114
115
116 LocalizedGeometryFormats(final String sourceFormat) {
117 this.sourceFormat = sourceFormat;
118 }
119
120
121 @Override
122 public String getSourceString() {
123 return sourceFormat;
124 }
125
126
127 @Override
128 public String getLocalizedString(final Locale locale) {
129 return getLocalizedString("assets/" + LocalizedGeometryFormats.class.getName().replaceAll("\\.", "/"),
130 name(), locale);
131 }
132
133 }