id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
112,200
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.envelopeEqualsEnvelope_
private static boolean envelopeEqualsEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { return envelopeInfContainsEnvelope_(env_a, env_b, tolerance) && envelopeInfContainsEnvelope_(env_b, env_a, tolerance); }
java
private static boolean envelopeEqualsEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { return envelopeInfContainsEnvelope_(env_a, env_b, tolerance) && envelopeInfContainsEnvelope_(env_b, env_a, tolerance); }
[ "private", "static", "boolean", "envelopeEqualsEnvelope_", "(", "Envelope2D", "env_a", ",", "Envelope2D", "env_b", ",", "double", "tolerance", ",", "ProgressTracker", "progress_tracker", ")", "{", "return", "envelopeInfContainsEnvelope_", "(", "env_a", ",", "env_b", "...
Returns true if env_a equals env_b.
[ "Returns", "true", "if", "env_a", "equals", "env_b", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L2856-L2860
112,201
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.envelopeDisjointEnvelope_
static boolean envelopeDisjointEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { Envelope2D env_b_inflated = new Envelope2D(); env_b_inflated.setCoords(env_b); env_b_inflated.inflate(tolerance, tolerance); return !env_a.isIntersecting(env_b_inflated); }
java
static boolean envelopeDisjointEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { Envelope2D env_b_inflated = new Envelope2D(); env_b_inflated.setCoords(env_b); env_b_inflated.inflate(tolerance, tolerance); return !env_a.isIntersecting(env_b_inflated); }
[ "static", "boolean", "envelopeDisjointEnvelope_", "(", "Envelope2D", "env_a", ",", "Envelope2D", "env_b", ",", "double", "tolerance", ",", "ProgressTracker", "progress_tracker", ")", "{", "Envelope2D", "env_b_inflated", "=", "new", "Envelope2D", "(", ")", ";", "env_...
Returns true if env_a is disjoint from env_b.
[ "Returns", "true", "if", "env_a", "is", "disjoint", "from", "env_b", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L2863-L2869
112,202
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.envelopeContainsEnvelope_
private static boolean envelopeContainsEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { if (!envelopeInfContainsEnvelope_(env_a, env_b, tolerance)) return false; if (env_a.getHeight() <= tolerance && env_a.getWidth() <= tolerance) { Point2D pt_a = env_a.g...
java
private static boolean envelopeContainsEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { if (!envelopeInfContainsEnvelope_(env_a, env_b, tolerance)) return false; if (env_a.getHeight() <= tolerance && env_a.getWidth() <= tolerance) { Point2D pt_a = env_a.g...
[ "private", "static", "boolean", "envelopeContainsEnvelope_", "(", "Envelope2D", "env_a", ",", "Envelope2D", "env_b", ",", "double", "tolerance", ",", "ProgressTracker", "progress_tracker", ")", "{", "if", "(", "!", "envelopeInfContainsEnvelope_", "(", "env_a", ",", ...
Returns true if env_a contains env_b.
[ "Returns", "true", "if", "env_a", "contains", "env_b", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L3037-L3087
112,203
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.envelopeCrossesEnvelope_
private static boolean envelopeCrossesEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { if (envelopeInfContainsEnvelope_(env_a, env_b, tolerance) || envelopeInfContainsEnvelope_(env_b, env_a, tolerance)) return false; if (env_a.getHeight() <= tolerance &&...
java
private static boolean envelopeCrossesEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { if (envelopeInfContainsEnvelope_(env_a, env_b, tolerance) || envelopeInfContainsEnvelope_(env_b, env_a, tolerance)) return false; if (env_a.getHeight() <= tolerance &&...
[ "private", "static", "boolean", "envelopeCrossesEnvelope_", "(", "Envelope2D", "env_a", ",", "Envelope2D", "env_b", ",", "double", "tolerance", ",", "ProgressTracker", "progress_tracker", ")", "{", "if", "(", "envelopeInfContainsEnvelope_", "(", "env_a", ",", "env_b",...
Returns true if env_a crosses env_b.
[ "Returns", "true", "if", "env_a", "crosses", "env_b", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L3090-L3169
112,204
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.envelopeInfContainsEnvelope_
private static boolean envelopeInfContainsEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance) { Envelope2D env_a_inflated = new Envelope2D(); env_a_inflated.setCoords(env_a); env_a_inflated.inflate(tolerance, tolerance); return env_a_inflated.contains(env_b); }
java
private static boolean envelopeInfContainsEnvelope_(Envelope2D env_a, Envelope2D env_b, double tolerance) { Envelope2D env_a_inflated = new Envelope2D(); env_a_inflated.setCoords(env_a); env_a_inflated.inflate(tolerance, tolerance); return env_a_inflated.contains(env_b); }
[ "private", "static", "boolean", "envelopeInfContainsEnvelope_", "(", "Envelope2D", "env_a", ",", "Envelope2D", "env_b", ",", "double", "tolerance", ")", "{", "Envelope2D", "env_a_inflated", "=", "new", "Envelope2D", "(", ")", ";", "env_a_inflated", ".", "setCoords",...
Returns true if env_a inflated contains env_b.
[ "Returns", "true", "if", "env_a", "inflated", "contains", "env_b", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L3271-L3277
112,205
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.interiorEnvExteriorEnv_
private static boolean interiorEnvExteriorEnv_(Envelope2D env_a, Envelope2D env_b, double tolerance) { Envelope2D envBInflated = new Envelope2D(); envBInflated.setCoords(env_b); envBInflated.inflate(tolerance, tolerance); Point2D pt = new Point2D(); env_a.queryLowerLeft(pt); if (!envBInflated.contains(p...
java
private static boolean interiorEnvExteriorEnv_(Envelope2D env_a, Envelope2D env_b, double tolerance) { Envelope2D envBInflated = new Envelope2D(); envBInflated.setCoords(env_b); envBInflated.inflate(tolerance, tolerance); Point2D pt = new Point2D(); env_a.queryLowerLeft(pt); if (!envBInflated.contains(p...
[ "private", "static", "boolean", "interiorEnvExteriorEnv_", "(", "Envelope2D", "env_a", ",", "Envelope2D", "env_b", ",", "double", "tolerance", ")", "{", "Envelope2D", "envBInflated", "=", "new", "Envelope2D", "(", ")", ";", "envBInflated", ".", "setCoords", "(", ...
Returns true if a coordinate of envelope A is outside of envelope B.
[ "Returns", "true", "if", "a", "coordinate", "of", "envelope", "A", "is", "outside", "of", "envelope", "B", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L3280-L3305
112,206
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.multiPathExactlyEqualsMultiPath_
private static boolean multiPathExactlyEqualsMultiPath_( MultiPath multipathA, MultiPath multipathB, double tolerance, ProgressTracker progress_tracker) { if (multipathA.getPathCount() != multipathB.getPathCount() || multipathA.getPointCount() != multipathB.getPointCount()) return false; Point2D ptA =...
java
private static boolean multiPathExactlyEqualsMultiPath_( MultiPath multipathA, MultiPath multipathB, double tolerance, ProgressTracker progress_tracker) { if (multipathA.getPathCount() != multipathB.getPathCount() || multipathA.getPointCount() != multipathB.getPointCount()) return false; Point2D ptA =...
[ "private", "static", "boolean", "multiPathExactlyEqualsMultiPath_", "(", "MultiPath", "multipathA", ",", "MultiPath", "multipathB", ",", "double", "tolerance", ",", "ProgressTracker", "progress_tracker", ")", "{", "if", "(", "multipathA", ".", "getPathCount", "(", ")"...
those in multipathB, within a tolerance, and in the same order.
[ "those", "in", "multipathB", "within", "a", "tolerance", "and", "in", "the", "same", "order", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L3309-L3345
112,207
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.multiPointExactlyEqualsMultiPoint_
private static boolean multiPointExactlyEqualsMultiPoint_( MultiPoint multipoint_a, MultiPoint multipoint_b, double tolerance, ProgressTracker progress_tracker) { if (multipoint_a.getPointCount() != multipoint_b.getPointCount()) return false; Point2D ptA = new Point2D(), ptB = new Point2D(); boolean bAl...
java
private static boolean multiPointExactlyEqualsMultiPoint_( MultiPoint multipoint_a, MultiPoint multipoint_b, double tolerance, ProgressTracker progress_tracker) { if (multipoint_a.getPointCount() != multipoint_b.getPointCount()) return false; Point2D ptA = new Point2D(), ptB = new Point2D(); boolean bAl...
[ "private", "static", "boolean", "multiPointExactlyEqualsMultiPoint_", "(", "MultiPoint", "multipoint_a", ",", "MultiPoint", "multipoint_b", ",", "double", "tolerance", ",", "ProgressTracker", "progress_tracker", ")", "{", "if", "(", "multipoint_a", ".", "getPointCount", ...
multipoint_b, within a tolerance, and in the same order.
[ "multipoint_b", "within", "a", "tolerance", "and", "in", "the", "same", "order", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L3349-L3373
112,208
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.multiPointIntersectsMultiPoint_
private static boolean multiPointIntersectsMultiPoint_( MultiPoint _multipointA, MultiPoint _multipointB, double tolerance, ProgressTracker progress_tracker) { MultiPoint multipoint_a; MultiPoint multipoint_b; if (_multipointA.getPointCount() > _multipointB.getPointCount()) { multipoint_a = _multipointB...
java
private static boolean multiPointIntersectsMultiPoint_( MultiPoint _multipointA, MultiPoint _multipointB, double tolerance, ProgressTracker progress_tracker) { MultiPoint multipoint_a; MultiPoint multipoint_b; if (_multipointA.getPointCount() > _multipointB.getPointCount()) { multipoint_a = _multipointB...
[ "private", "static", "boolean", "multiPointIntersectsMultiPoint_", "(", "MultiPoint", "_multipointA", ",", "MultiPoint", "_multipointB", ",", "double", "tolerance", ",", "ProgressTracker", "progress_tracker", ")", "{", "MultiPoint", "multipoint_a", ";", "MultiPoint", "mul...
Returns true if multipoint_a intersects multipoint_b.
[ "Returns", "true", "if", "multipoint_a", "intersects", "multipoint_b", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L3489-L3541
112,209
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.linearPathEqualsLinearPath_
private static boolean linearPathEqualsLinearPath_(MultiPath multipathA, MultiPath multipathB, double tolerance, boolean bEnforceOrientation) { return linearPathWithinLinearPath_(multipathA, multipathB, tolerance, bEnforceOrientation) && linearPathWithinLinearPath_(multipathB, multipathA, tolerance, bEnf...
java
private static boolean linearPathEqualsLinearPath_(MultiPath multipathA, MultiPath multipathB, double tolerance, boolean bEnforceOrientation) { return linearPathWithinLinearPath_(multipathA, multipathB, tolerance, bEnforceOrientation) && linearPathWithinLinearPath_(multipathB, multipathA, tolerance, bEnf...
[ "private", "static", "boolean", "linearPathEqualsLinearPath_", "(", "MultiPath", "multipathA", ",", "MultiPath", "multipathB", ",", "double", "tolerance", ",", "boolean", "bEnforceOrientation", ")", "{", "return", "linearPathWithinLinearPath_", "(", "multipathA", ",", "...
Returns true if multipathA equals multipathB.
[ "Returns", "true", "if", "multipathA", "equals", "multipathB", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L3544-L3549
112,210
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.linearPathIntersectsLinearPath_
private static boolean linearPathIntersectsLinearPath_( MultiPath multipathA, MultiPath multipathB, double tolerance) { MultiPathImpl multi_path_impl_a = (MultiPathImpl) multipathA._getImpl(); MultiPathImpl multi_path_impl_b = (MultiPathImpl) multipathB._getImpl(); SegmentIteratorImpl segIterA = multi_path_im...
java
private static boolean linearPathIntersectsLinearPath_( MultiPath multipathA, MultiPath multipathB, double tolerance) { MultiPathImpl multi_path_impl_a = (MultiPathImpl) multipathA._getImpl(); MultiPathImpl multi_path_impl_b = (MultiPathImpl) multipathB._getImpl(); SegmentIteratorImpl segIterA = multi_path_im...
[ "private", "static", "boolean", "linearPathIntersectsLinearPath_", "(", "MultiPath", "multipathA", ",", "MultiPath", "multipathB", ",", "double", "tolerance", ")", "{", "MultiPathImpl", "multi_path_impl_a", "=", "(", "MultiPathImpl", ")", "multipathA", ".", "_getImpl", ...
segments of _multipathB.
[ "segments", "of", "_multipathB", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L4106-L4134
112,211
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.linearPathIntersectsPoint_
static boolean linearPathIntersectsPoint_(MultiPath multipathA, Point2D ptB, double tolerance) { Point2D closest = new Point2D(); double toleranceSq = tolerance * tolerance; SegmentIteratorImpl segIterA = ((MultiPathImpl) multipathA._getImpl()) .querySegmentIterator(); GeometryAccelerators accel = ((Mul...
java
static boolean linearPathIntersectsPoint_(MultiPath multipathA, Point2D ptB, double tolerance) { Point2D closest = new Point2D(); double toleranceSq = tolerance * tolerance; SegmentIteratorImpl segIterA = ((MultiPathImpl) multipathA._getImpl()) .querySegmentIterator(); GeometryAccelerators accel = ((Mul...
[ "static", "boolean", "linearPathIntersectsPoint_", "(", "MultiPath", "multipathA", ",", "Point2D", "ptB", ",", "double", "tolerance", ")", "{", "Point2D", "closest", "=", "new", "Point2D", "(", ")", ";", "double", "toleranceSq", "=", "tolerance", "*", "tolerance...
Returns true if a segment of multipathA intersects point_b.
[ "Returns", "true", "if", "a", "segment", "of", "multipathA", "intersects", "point_b", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L4247-L4306
112,212
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.linearPathIntersectsEnvelope_
private static boolean linearPathIntersectsEnvelope_(MultiPath multipath_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { if (!multipath_a.hasNonLinearSegments()) { Envelope2D env_b_inflated = new Envelope2D(); env_b_inflated.setCoords(env_b); env_b_inflated.inflate(tolerance, to...
java
private static boolean linearPathIntersectsEnvelope_(MultiPath multipath_a, Envelope2D env_b, double tolerance, ProgressTracker progress_tracker) { if (!multipath_a.hasNonLinearSegments()) { Envelope2D env_b_inflated = new Envelope2D(); env_b_inflated.setCoords(env_b); env_b_inflated.inflate(tolerance, to...
[ "private", "static", "boolean", "linearPathIntersectsEnvelope_", "(", "MultiPath", "multipath_a", ",", "Envelope2D", "env_b", ",", "double", "tolerance", ",", "ProgressTracker", "progress_tracker", ")", "{", "if", "(", "!", "multipath_a", ".", "hasNonLinearSegments", ...
Returns true if the segments of multipathA intersects env_b
[ "Returns", "true", "if", "the", "segments", "of", "multipathA", "intersects", "env_b" ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L4321-L4382
112,213
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/RelationalOperations.java
RelationalOperations.checkVerticesForIntersection_
private static boolean checkVerticesForIntersection_( MultiVertexGeometryImpl geom, RasterizedGeometry2D rgeom) { // Do a quick raster test for each point. If any point is inside, then // there is an intersection. int pointCount = geom.getPointCount(); Point2D pt = new Point2D(); for (int ipoint = 0; ipoin...
java
private static boolean checkVerticesForIntersection_( MultiVertexGeometryImpl geom, RasterizedGeometry2D rgeom) { // Do a quick raster test for each point. If any point is inside, then // there is an intersection. int pointCount = geom.getPointCount(); Point2D pt = new Point2D(); for (int ipoint = 0; ipoin...
[ "private", "static", "boolean", "checkVerticesForIntersection_", "(", "MultiVertexGeometryImpl", "geom", ",", "RasterizedGeometry2D", "rgeom", ")", "{", "// Do a quick raster test for each point. If any point is inside, then", "// there is an intersection.", "int", "pointCount", "=",...
Returns true if intersects and false if nothing can be determined.
[ "Returns", "true", "if", "intersects", "and", "false", "if", "nothing", "can", "be", "determined", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/RelationalOperations.java#L4481-L4497
112,214
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/BucketSort.java
BucketSort.reset
private boolean reset(int bucket_count, double min_value, double max_value, int capacity) { if (bucket_count < 2 || max_value == min_value) return false; int bc = Math.min(MAXBUCKETS, bucket_count); m_buckets.reserve(bc); m_buckets.resize(bc); m_buckets.setRange(0, 0, m_buckets.size()); m_min_value =...
java
private boolean reset(int bucket_count, double min_value, double max_value, int capacity) { if (bucket_count < 2 || max_value == min_value) return false; int bc = Math.min(MAXBUCKETS, bucket_count); m_buckets.reserve(bc); m_buckets.resize(bc); m_buckets.setRange(0, 0, m_buckets.size()); m_min_value =...
[ "private", "boolean", "reset", "(", "int", "bucket_count", ",", "double", "min_value", ",", "double", "max_value", ",", "int", "capacity", ")", "{", "if", "(", "bucket_count", "<", "2", "||", "max_value", "==", "min_value", ")", "return", "false", ";", "in...
Clears and resets Bucket_sort to the new state, preparing for the accumulation of new data. @param bucket_count - the number of buckets. Usually equal to the number of elements to sort. @param min_value - the minimum value of elements to sort. @param max_value - the maximum value of elements to sort. @param capacity -...
[ "Clears", "and", "resets", "Bucket_sort", "to", "the", "new", "state", "preparing", "for", "the", "accumulation", "of", "new", "data", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/BucketSort.java#L144-L159
112,215
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/BucketSort.java
BucketSort.getBucket
private int getBucket(double value) { assert (value >= m_min_value && value <= m_max_value); int bucket = (int) ((value - m_min_value) / m_dy); return bucket; }
java
private int getBucket(double value) { assert (value >= m_min_value && value <= m_max_value); int bucket = (int) ((value - m_min_value) / m_dy); return bucket; }
[ "private", "int", "getBucket", "(", "double", "value", ")", "{", "assert", "(", "value", ">=", "m_min_value", "&&", "value", "<=", "m_max_value", ")", ";", "int", "bucket", "=", "(", "int", ")", "(", "(", "value", "-", "m_min_value", ")", "/", "m_dy", ...
Adds new element to the bucket builder. The value must be between min_value and max_value. @param The value used for bucketing. @param The index of the element to store in the buffer. Usually it is an index into some array, where the real elements are stored.
[ "Adds", "new", "element", "to", "the", "bucket", "builder", ".", "The", "value", "must", "be", "between", "min_value", "and", "max_value", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/BucketSort.java#L171-L175
112,216
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/StridedIndexTypeCollection.java
StridedIndexTypeCollection.getField
int getField(int element, int field) { assert(m_buffer[element >> m_blockPower][(element & m_blockMask) + 1] != -0x7eadbeed); return m_buffer[element >> m_blockPower][(element & m_blockMask) + field]; }
java
int getField(int element, int field) { assert(m_buffer[element >> m_blockPower][(element & m_blockMask) + 1] != -0x7eadbeed); return m_buffer[element >> m_blockPower][(element & m_blockMask) + field]; }
[ "int", "getField", "(", "int", "element", ",", "int", "field", ")", "{", "assert", "(", "m_buffer", "[", "element", ">>", "m_blockPower", "]", "[", "(", "element", "&", "m_blockMask", ")", "+", "1", "]", "!=", "-", "0x7eadbeed", ")", ";", "return", "...
Returns the given field of the element.
[ "Returns", "the", "given", "field", "of", "the", "element", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/StridedIndexTypeCollection.java#L94-L98
112,217
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/StridedIndexTypeCollection.java
StridedIndexTypeCollection.setField
void setField(int element, int field, int value) { assert(m_buffer[element >> m_blockPower][(element & m_blockMask) + 1] != -0x7eadbeed); m_buffer[element >> m_blockPower][(element & m_blockMask) + field] = value; }
java
void setField(int element, int field, int value) { assert(m_buffer[element >> m_blockPower][(element & m_blockMask) + 1] != -0x7eadbeed); m_buffer[element >> m_blockPower][(element & m_blockMask) + field] = value; }
[ "void", "setField", "(", "int", "element", ",", "int", "field", ",", "int", "value", ")", "{", "assert", "(", "m_buffer", "[", "element", ">>", "m_blockPower", "]", "[", "(", "element", "&", "m_blockMask", ")", "+", "1", "]", "!=", "-", "0x7eadbeed", ...
Sets the given field of the element.
[ "Sets", "the", "given", "field", "of", "the", "element", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/StridedIndexTypeCollection.java#L101-L104
112,218
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/StridedIndexTypeCollection.java
StridedIndexTypeCollection.newElement
int newElement() { int element = m_firstFree; if (element == -1) { if (m_last == m_capacity) { long newcap = m_capacity != 0 ? (((long) m_capacity + 1) * 3 / 2) : (long) 1; if (newcap > Integer.MAX_VALUE) newcap = Integer.MAX_VALUE;// cannot grow past 2gb elements // presently ...
java
int newElement() { int element = m_firstFree; if (element == -1) { if (m_last == m_capacity) { long newcap = m_capacity != 0 ? (((long) m_capacity + 1) * 3 / 2) : (long) 1; if (newcap > Integer.MAX_VALUE) newcap = Integer.MAX_VALUE;// cannot grow past 2gb elements // presently ...
[ "int", "newElement", "(", ")", "{", "int", "element", "=", "m_firstFree", ";", "if", "(", "element", "==", "-", "1", ")", "{", "if", "(", "m_last", "==", "m_capacity", ")", "{", "long", "newcap", "=", "m_capacity", "!=", "0", "?", "(", "(", "(", ...
All fields are initialized to -1.
[ "All", "fields", "are", "initialized", "to", "-", "1", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/StridedIndexTypeCollection.java#L113-L144
112,219
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/StridedIndexTypeCollection.java
StridedIndexTypeCollection.swapField
void swapField(int element1, int element2, int field) { int ar1[] = m_buffer[element1 >> m_blockPower]; int ar2[] = m_buffer[element2 >> m_blockPower]; int ind1 = (element1 & m_blockMask) + field; int ind2 = (element2 & m_blockMask) + field; int tmp = ar1[ind1]; ar1[ind1] = ar2[ind2]; ar2[ind2] = tmp; }
java
void swapField(int element1, int element2, int field) { int ar1[] = m_buffer[element1 >> m_blockPower]; int ar2[] = m_buffer[element2 >> m_blockPower]; int ind1 = (element1 & m_blockMask) + field; int ind2 = (element2 & m_blockMask) + field; int tmp = ar1[ind1]; ar1[ind1] = ar2[ind2]; ar2[ind2] = tmp; }
[ "void", "swapField", "(", "int", "element1", ",", "int", "element2", ",", "int", "field", ")", "{", "int", "ar1", "[", "]", "=", "m_buffer", "[", "element1", ">>", "m_blockPower", "]", ";", "int", "ar2", "[", "]", "=", "m_buffer", "[", "element2", ">...
Swaps content of two fields
[ "Swaps", "content", "of", "two", "fields" ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/StridedIndexTypeCollection.java#L193-L201
112,220
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPoint.java
MultiPoint.add
public void add(MultiVertexGeometry src, int srcFrom, int srcTo) { m_impl.add((MultiVertexGeometryImpl) src._getImpl(), srcFrom, srcTo); }
java
public void add(MultiVertexGeometry src, int srcFrom, int srcTo) { m_impl.add((MultiVertexGeometryImpl) src._getImpl(), srcFrom, srcTo); }
[ "public", "void", "add", "(", "MultiVertexGeometry", "src", ",", "int", "srcFrom", ",", "int", "srcTo", ")", "{", "m_impl", ".", "add", "(", "(", "MultiVertexGeometryImpl", ")", "src", ".", "_getImpl", "(", ")", ",", "srcFrom", ",", "srcTo", ")", ";", ...
Appends points from another multipoint at the end of this multipoint. @param src The mulitpoint to append to this multipoint. @param srcFrom The start index in the source multipoint from which to start appending points. @param srcTo The end index in the source multipoint right after the last point to be appended. Use ...
[ "Appends", "points", "from", "another", "multipoint", "at", "the", "end", "of", "this", "multipoint", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPoint.java#L163-L165
112,221
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.transform
public void transform(Point[] pointsIn, int count, Point[] pointsOut) { Point2D res = new Point2D(); for (int i = 0; i < count; i++) { Point2D p = pointsIn[i].getXY(); res.x = xx * p.x + xy * p.y + xd; res.y = yx * p.x + yy * p.y + yd; pointsOut[i] = new Point(res.x, res.y); } }
java
public void transform(Point[] pointsIn, int count, Point[] pointsOut) { Point2D res = new Point2D(); for (int i = 0; i < count; i++) { Point2D p = pointsIn[i].getXY(); res.x = xx * p.x + xy * p.y + xd; res.y = yx * p.x + yy * p.y + yd; pointsOut[i] = new Point(res.x, res.y); } }
[ "public", "void", "transform", "(", "Point", "[", "]", "pointsIn", ",", "int", "count", ",", "Point", "[", "]", "pointsOut", ")", "{", "Point2D", "res", "=", "new", "Point2D", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count...
Transforms an array of points. @param pointsIn The points to be transformed. @param count The number of points to transform. @param pointsOut The transformed points are returned using this array. It should have the same or greater size as the input array.
[ "Transforms", "an", "array", "of", "points", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L165-L173
112,222
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.transform
public void transform(double[] pointsXYInterleaved, int start, int count) { int n = Math.min(pointsXYInterleaved.length, (start + count) * 2) / 2; for (int i = count; i < n; i++) { double px = pointsXYInterleaved[2 * i]; double py = pointsXYInterleaved[2 * i + 1]; pointsXYInterleaved[2 * i] = xx * px + xy ...
java
public void transform(double[] pointsXYInterleaved, int start, int count) { int n = Math.min(pointsXYInterleaved.length, (start + count) * 2) / 2; for (int i = count; i < n; i++) { double px = pointsXYInterleaved[2 * i]; double py = pointsXYInterleaved[2 * i + 1]; pointsXYInterleaved[2 * i] = xx * px + xy ...
[ "public", "void", "transform", "(", "double", "[", "]", "pointsXYInterleaved", ",", "int", "start", ",", "int", "count", ")", "{", "int", "n", "=", "Math", ".", "min", "(", "pointsXYInterleaved", ".", "length", ",", "(", "start", "+", "count", ")", "*"...
Transforms an array of points stored in an array of doubles as interleaved XY coordinates. @param pointsXYInterleaved The array of points with interleaved X, Y values to be transformed. @param start The start point index to transform from (the actual element index is 2 * start). @param count The number of points to tr...
[ "Transforms", "an", "array", "of", "points", "stored", "in", "an", "array", "of", "doubles", "as", "interleaved", "XY", "coordinates", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L189-L197
112,223
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.copy
public Transformation2D copy() { Transformation2D result = new Transformation2D(); result.xx = xx; result.xy = xy; result.xd = xd; result.yx = yx; result.yy = yy; result.yd = yd; return result; }
java
public Transformation2D copy() { Transformation2D result = new Transformation2D(); result.xx = xx; result.xy = xy; result.xd = xd; result.yx = yx; result.yy = yy; result.yd = yd; return result; }
[ "public", "Transformation2D", "copy", "(", ")", "{", "Transformation2D", "result", "=", "new", "Transformation2D", "(", ")", ";", "result", ".", "xx", "=", "xx", ";", "result", ".", "xy", "=", "xy", ";", "result", ".", "xd", "=", "xd", ";", "result", ...
Returns a copy of the Transformation2D object. @return A copy of this object.
[ "Returns", "a", "copy", "of", "the", "Transformation2D", "object", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L259-L268
112,224
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.getCoefficients
public void getCoefficients(double[] coefs) { if (coefs.length < 6) throw new GeometryException( "Buffer is too small. coefs needs 6 members"); coefs[0] = xx; coefs[1] = xy; coefs[2] = xd; coefs[3] = yx; coefs[4] = yy; coefs[5] = yd; }
java
public void getCoefficients(double[] coefs) { if (coefs.length < 6) throw new GeometryException( "Buffer is too small. coefs needs 6 members"); coefs[0] = xx; coefs[1] = xy; coefs[2] = xd; coefs[3] = yx; coefs[4] = yy; coefs[5] = yd; }
[ "public", "void", "getCoefficients", "(", "double", "[", "]", "coefs", ")", "{", "if", "(", "coefs", ".", "length", "<", "6", ")", "throw", "new", "GeometryException", "(", "\"Buffer is too small. coefs needs 6 members\"", ")", ";", "coefs", "[", "0", "]", "...
Writes the matrix coefficients in the order XX, XY, XD, YX, YY, YD into the given array. @param coefs The array into which the coefficients are returned. Should be of size 6 elements.
[ "Writes", "the", "matrix", "coefficients", "in", "the", "order", "XX", "XY", "XD", "YX", "YY", "YD", "into", "the", "given", "array", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L278-L289
112,225
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.initializeFromRect
void initializeFromRect(Envelope2D src, Envelope2D dest) { if (src.isEmpty() || dest.isEmpty() || 0 == src.getWidth() || 0 == src.getHeight()) setZero(); else { xy = yx = 0; xx = dest.getWidth() / src.getWidth(); yy = dest.getHeight() / src.getHeight(); xd = dest.xmin - src.xmin * xx; yd = des...
java
void initializeFromRect(Envelope2D src, Envelope2D dest) { if (src.isEmpty() || dest.isEmpty() || 0 == src.getWidth() || 0 == src.getHeight()) setZero(); else { xy = yx = 0; xx = dest.getWidth() / src.getWidth(); yy = dest.getHeight() / src.getHeight(); xd = dest.xmin - src.xmin * xx; yd = des...
[ "void", "initializeFromRect", "(", "Envelope2D", "src", ",", "Envelope2D", "dest", ")", "{", "if", "(", "src", ".", "isEmpty", "(", ")", "||", "dest", ".", "isEmpty", "(", ")", "||", "0", "==", "src", ".", "getWidth", "(", ")", "||", "0", "==", "sr...
Initialize transformation from two rectangles.
[ "Initialize", "transformation", "from", "two", "rectangles", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L321-L332
112,226
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.initializeFromRectIsotropic
void initializeFromRectIsotropic(Envelope2D src, Envelope2D dest) { if (src.isEmpty() || dest.isEmpty() || 0 == src.getWidth() || 0 == src.getHeight()) setZero(); else { yx = 0; xy = 0; xx = dest.getWidth() / src.getWidth(); yy = dest.getHeight() / src.getHeight(); if (xx > yy) xx = yy; ...
java
void initializeFromRectIsotropic(Envelope2D src, Envelope2D dest) { if (src.isEmpty() || dest.isEmpty() || 0 == src.getWidth() || 0 == src.getHeight()) setZero(); else { yx = 0; xy = 0; xx = dest.getWidth() / src.getWidth(); yy = dest.getHeight() / src.getHeight(); if (xx > yy) xx = yy; ...
[ "void", "initializeFromRectIsotropic", "(", "Envelope2D", "src", ",", "Envelope2D", "dest", ")", "{", "if", "(", "src", ".", "isEmpty", "(", ")", "||", "dest", ".", "isEmpty", "(", ")", "||", "0", "==", "src", ".", "getWidth", "(", ")", "||", "0", "=...
Initializes an orhtonormal transformation from the Src and Dest rectangles. The result transformation proportionally fits the Src into the Dest. The center of the Src will be in the center of the Dest.
[ "Initializes", "an", "orhtonormal", "transformation", "from", "the", "Src", "and", "Dest", "rectangles", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L341-L361
112,227
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.transformSize
Point2D transformSize(Point2D SizeSrc) { Point2D pt = new Point2D(); pt.x = Math.sqrt(xx * xx + yx * yx) * SizeSrc.x; pt.y = Math.sqrt(xy * xy + yy * yy) * SizeSrc.y; return pt; }
java
Point2D transformSize(Point2D SizeSrc) { Point2D pt = new Point2D(); pt.x = Math.sqrt(xx * xx + yx * yx) * SizeSrc.x; pt.y = Math.sqrt(xy * xy + yy * yy) * SizeSrc.y; return pt; }
[ "Point2D", "transformSize", "(", "Point2D", "SizeSrc", ")", "{", "Point2D", "pt", "=", "new", "Point2D", "(", ")", ";", "pt", ".", "x", "=", "Math", ".", "sqrt", "(", "xx", "*", "xx", "+", "yx", "*", "yx", ")", "*", "SizeSrc", ".", "x", ";", "p...
Transforms size. Creates an AABB with width of SizeSrc.x and height of SizeSrc.y. Transforms that AABB and gets a quadrangle in new coordinate system. The result x contains the length of the quadrangle edge, which were parallel to X in the original system, and y contains the length of the edge, that were parallel to t...
[ "Transforms", "size", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L381-L386
112,228
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.transform
public double transform(double tolerance) { // the function should be implemented as follows: find encompassing // circle for the transformed circle of radius = Tolerance. // this is approximation. Point2D pt1 = new Point2D(); Point2D pt2 = new Point2D(); /* * pt[0].Set(0, 0); pt[1].Set(1, 0); pt[2].Set...
java
public double transform(double tolerance) { // the function should be implemented as follows: find encompassing // circle for the transformed circle of radius = Tolerance. // this is approximation. Point2D pt1 = new Point2D(); Point2D pt2 = new Point2D(); /* * pt[0].Set(0, 0); pt[1].Set(1, 0); pt[2].Set...
[ "public", "double", "transform", "(", "double", "tolerance", ")", "{", "// the function should be implemented as follows: find encompassing", "// circle for the transformed circle of radius = Tolerance.", "// this is approximation.", "Point2D", "pt1", "=", "new", "Point2D", "(", ")...
Transforms a tolerance value. @param tolerance The tolerance value.
[ "Transforms", "a", "tolerance", "value", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L394-L415
112,229
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.transformWithoutShift
void transformWithoutShift(Point2D[] pointsIn, int from, int count, Point2D[] pointsOut) { for (int i = from, n = from + count; i < n; i++) { Point2D p = pointsIn[i]; double new_x = xx * p.x + xy * p.y; double new_y = yx * p.x + yy * p.y; pointsOut[i].setCoords(new_x, new_y); } }
java
void transformWithoutShift(Point2D[] pointsIn, int from, int count, Point2D[] pointsOut) { for (int i = from, n = from + count; i < n; i++) { Point2D p = pointsIn[i]; double new_x = xx * p.x + xy * p.y; double new_y = yx * p.x + yy * p.y; pointsOut[i].setCoords(new_x, new_y); } }
[ "void", "transformWithoutShift", "(", "Point2D", "[", "]", "pointsIn", ",", "int", "from", ",", "int", "count", ",", "Point2D", "[", "]", "pointsOut", ")", "{", "for", "(", "int", "i", "=", "from", ",", "n", "=", "from", "+", "count", ";", "i", "<"...
be zeroed.
[ "be", "zeroed", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L419-L427
112,230
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.isIdentity
public boolean isIdentity(double tol) { Point2D pt = Point2D.construct(0., 1.); transform(pt, pt); pt.sub(Point2D.construct(0., 1.)); if (pt.sqrLength() > tol * tol) return false; pt.setCoords(0, 0); transform(pt, pt); if (pt.sqrLength() > tol * tol) return false; pt.setCoords(1.0, 0.0); trans...
java
public boolean isIdentity(double tol) { Point2D pt = Point2D.construct(0., 1.); transform(pt, pt); pt.sub(Point2D.construct(0., 1.)); if (pt.sqrLength() > tol * tol) return false; pt.setCoords(0, 0); transform(pt, pt); if (pt.sqrLength() > tol * tol) return false; pt.setCoords(1.0, 0.0); trans...
[ "public", "boolean", "isIdentity", "(", "double", "tol", ")", "{", "Point2D", "pt", "=", "Point2D", ".", "construct", "(", "0.", ",", "1.", ")", ";", "transform", "(", "pt", ",", "pt", ")", ";", "pt", ".", "sub", "(", "Point2D", ".", "construct", "...
Returns TRUE if this matrix is an identity matrix within the given tolerance. @param tol The tolerance value.
[ "Returns", "TRUE", "if", "this", "matrix", "is", "an", "identity", "matrix", "within", "the", "given", "tolerance", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L462-L478
112,231
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.isUniform
public boolean isUniform(double eps) { double v1 = xx * xx + yx * yx; double v2 = xy * xy + yy * yy; double e = (v1 + v2) * eps; return Math.abs(v1 - v2) <= e && Math.abs(xx * xy + yx * yy) <= e; }
java
public boolean isUniform(double eps) { double v1 = xx * xx + yx * yx; double v2 = xy * xy + yy * yy; double e = (v1 + v2) * eps; return Math.abs(v1 - v2) <= e && Math.abs(xx * xy + yx * yy) <= e; }
[ "public", "boolean", "isUniform", "(", "double", "eps", ")", "{", "double", "v1", "=", "xx", "*", "xx", "+", "yx", "*", "yx", ";", "double", "v2", "=", "xy", "*", "xy", "+", "yy", "*", "yy", ";", "double", "e", "=", "(", "v1", "+", "v2", ")",...
Returns TRUE if this transformation is a uniform transformation. The uniform transformation is a transformation, which transforms a square to a square.
[ "Returns", "TRUE", "if", "this", "transformation", "is", "a", "uniform", "transformation", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L494-L499
112,232
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.isShift
public boolean isShift(double tol) { Point2D pt = transformWithoutShift(Point2D.construct(0.0, 1.0)); pt.y -= 1.0; if (pt.sqrLength() > tol * tol) return false; pt = transformWithoutShift(Point2D.construct(1.0, 0.0)); pt.x -= 1.0; return pt.sqrLength() <= tol * tol; }
java
public boolean isShift(double tol) { Point2D pt = transformWithoutShift(Point2D.construct(0.0, 1.0)); pt.y -= 1.0; if (pt.sqrLength() > tol * tol) return false; pt = transformWithoutShift(Point2D.construct(1.0, 0.0)); pt.x -= 1.0; return pt.sqrLength() <= tol * tol; }
[ "public", "boolean", "isShift", "(", "double", "tol", ")", "{", "Point2D", "pt", "=", "transformWithoutShift", "(", "Point2D", ".", "construct", "(", "0.0", ",", "1.0", ")", ")", ";", "pt", ".", "y", "-=", "1.0", ";", "if", "(", "pt", ".", "sqrLength...
Returns TRUE if this transformation is a shift transformation within the given tolerance. @param tol The tolerance value.
[ "Returns", "TRUE", "if", "this", "transformation", "is", "a", "shift", "transformation", "within", "the", "given", "tolerance", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L516-L525
112,233
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.isScaleAndShift
public boolean isScaleAndShift(double tol) { return xy * xy + yx * yx < (xx * xx + yy * yy) * tol; }
java
public boolean isScaleAndShift(double tol) { return xy * xy + yx * yx < (xx * xx + yy * yy) * tol; }
[ "public", "boolean", "isScaleAndShift", "(", "double", "tol", ")", "{", "return", "xy", "*", "xy", "+", "yx", "*", "yx", "<", "(", "xx", "*", "xx", "+", "yy", "*", "yy", ")", "*", "tol", ";", "}" ]
Returns TRUE, if this transformation does not have rotation and shear within the given tolerance. @param tol The tolerance value.
[ "Returns", "TRUE", "if", "this", "transformation", "does", "not", "have", "rotation", "and", "shear", "within", "the", "given", "tolerance", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L566-L568
112,234
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.setShift
public void setShift(double x, double y) { xx = 1; xy = 0; xd = x; yx = 0; yy = 1; yd = y; }
java
public void setShift(double x, double y) { xx = 1; xy = 0; xd = x; yx = 0; yy = 1; yd = y; }
[ "public", "void", "setShift", "(", "double", "x", ",", "double", "y", ")", "{", "xx", "=", "1", ";", "xy", "=", "0", ";", "xd", "=", "x", ";", "yx", "=", "0", ";", "yy", "=", "1", ";", "yd", "=", "y", ";", "}" ]
Set this transformation to be a shift. @param x The X coordinate to shift to. @param y The Y coordinate to shift to.
[ "Set", "this", "transformation", "to", "be", "a", "shift", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L578-L585
112,235
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.setFlipX
public void setFlipX(double x0, double x1) { xx = -1; xy = 0; xd = x0 + x1; yx = 0; yy = 1; yd = 0; }
java
public void setFlipX(double x0, double x1) { xx = -1; xy = 0; xd = x0 + x1; yx = 0; yy = 1; yd = 0; }
[ "public", "void", "setFlipX", "(", "double", "x0", ",", "double", "x1", ")", "{", "xx", "=", "-", "1", ";", "xy", "=", "0", ";", "xd", "=", "x0", "+", "x1", ";", "yx", "=", "0", ";", "yy", "=", "1", ";", "yd", "=", "0", ";", "}" ]
Sets the transformation to be a flip around the X axis. Flips the X coordinates so that the x0 becomes x1 and vice verse. @param x0 The X coordinate to flip. @param x1 The X coordinate to flip to.
[ "Sets", "the", "transformation", "to", "be", "a", "flip", "around", "the", "X", "axis", ".", "Flips", "the", "X", "coordinates", "so", "that", "the", "x0", "becomes", "x1", "and", "vice", "verse", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L623-L630
112,236
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.setFlipY
public void setFlipY(double y0, double y1) { xx = 1; xy = 0; xd = 0; yx = 0; yy = -1; yd = y0 + y1; }
java
public void setFlipY(double y0, double y1) { xx = 1; xy = 0; xd = 0; yx = 0; yy = -1; yd = y0 + y1; }
[ "public", "void", "setFlipY", "(", "double", "y0", ",", "double", "y1", ")", "{", "xx", "=", "1", ";", "xy", "=", "0", ";", "xd", "=", "0", ";", "yx", "=", "0", ";", "yy", "=", "-", "1", ";", "yd", "=", "y0", "+", "y1", ";", "}" ]
Sets the transformation to be a flip around the Y axis. Flips the Y coordinates so that the y0 becomes y1 and vice verse. @param y0 The Y coordinate to flip. @param y1 The Y coordinate to flip to.
[ "Sets", "the", "transformation", "to", "be", "a", "flip", "around", "the", "Y", "axis", ".", "Flips", "the", "Y", "coordinates", "so", "that", "the", "y0", "becomes", "y1", "and", "vice", "verse", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L641-L648
112,237
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.setShear
public void setShear(double proportionX, double proportionY) { xx = 1; xy = proportionX; xd = 0; yx = proportionY; yy = 1; yd = 0; }
java
public void setShear(double proportionX, double proportionY) { xx = 1; xy = proportionX; xd = 0; yx = proportionY; yy = 1; yd = 0; }
[ "public", "void", "setShear", "(", "double", "proportionX", ",", "double", "proportionY", ")", "{", "xx", "=", "1", ";", "xy", "=", "proportionX", ";", "xd", "=", "0", ";", "yx", "=", "proportionY", ";", "yy", "=", "1", ";", "yd", "=", "0", ";", ...
Set transformation to a shear. @param proportionX The proportion of shearing in x direction. @param proportionY The proportion of shearing in y direction.
[ "Set", "transformation", "to", "a", "shear", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L658-L665
112,238
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.setRotate
public void setRotate(double cosA, double sinA) { xx = cosA; xy = -sinA; xd = 0; yx = sinA; yy = cosA; yd = 0; }
java
public void setRotate(double cosA, double sinA) { xx = cosA; xy = -sinA; xd = 0; yx = sinA; yy = cosA; yd = 0; }
[ "public", "void", "setRotate", "(", "double", "cosA", ",", "double", "sinA", ")", "{", "xx", "=", "cosA", ";", "xy", "=", "-", "sinA", ";", "xd", "=", "0", ";", "yx", "=", "sinA", ";", "yy", "=", "cosA", ";", "yd", "=", "0", ";", "}" ]
Sets rotation for this transformation. When the axis Y is directed up and X is directed to the right, the positive angle corresponds to the anti-clockwise rotation. When the axis Y is directed down and X is directed to the right, the positive angle corresponds to the clockwise rotation. @param cosA The rotation angle...
[ "Sets", "rotation", "for", "this", "transformation", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L728-L735
112,239
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.scale
public void scale(double x, double y) { xx *= x; xy *= x; xd *= x; yx *= y; yy *= y; yd *= y; }
java
public void scale(double x, double y) { xx *= x; xy *= x; xd *= x; yx *= y; yy *= y; yd *= y; }
[ "public", "void", "scale", "(", "double", "x", ",", "double", "y", ")", "{", "xx", "*=", "x", ";", "xy", "*=", "x", ";", "xd", "*=", "x", ";", "yx", "*=", "y", ";", "yy", "*=", "y", ";", "yd", "*=", "y", ";", "}" ]
Scales the transformation. @param x The scale factor in X direction. @param y The scale factor in Y direction.
[ "Scales", "the", "transformation", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L781-L788
112,240
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.flipX
public void flipX(double x0, double x1) { xx = -xx; xy = -xy; xd = x0 + x1 - xd; }
java
public void flipX(double x0, double x1) { xx = -xx; xy = -xy; xd = x0 + x1 - xd; }
[ "public", "void", "flipX", "(", "double", "x0", ",", "double", "x1", ")", "{", "xx", "=", "-", "xx", ";", "xy", "=", "-", "xy", ";", "xd", "=", "x0", "+", "x1", "-", "xd", ";", "}" ]
Flips the transformation around the X axis. @param x0 The X coordinate to flip. @param x1 The X coordinate to flip to.
[ "Flips", "the", "transformation", "around", "the", "X", "axis", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L798-L802
112,241
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.flipY
public void flipY(double y0, double y1) { yx = -yx; yy = -yy; yd = y0 + y1 - yd; }
java
public void flipY(double y0, double y1) { yx = -yx; yy = -yy; yd = y0 + y1 - yd; }
[ "public", "void", "flipY", "(", "double", "y0", ",", "double", "y1", ")", "{", "yx", "=", "-", "yx", ";", "yy", "=", "-", "yy", ";", "yd", "=", "y0", "+", "y1", "-", "yd", ";", "}" ]
Flips the transformation around the Y axis. @param y0 The Y coordinate to flip. @param y1 The Y coordinate to flip to.
[ "Flips", "the", "transformation", "around", "the", "Y", "axis", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L812-L816
112,242
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.shear
public void shear(double proportionX, double proportionY) { Transformation2D temp = new Transformation2D(); temp.setShear(proportionX, proportionY); multiply(temp); }
java
public void shear(double proportionX, double proportionY) { Transformation2D temp = new Transformation2D(); temp.setShear(proportionX, proportionY); multiply(temp); }
[ "public", "void", "shear", "(", "double", "proportionX", ",", "double", "proportionY", ")", "{", "Transformation2D", "temp", "=", "new", "Transformation2D", "(", ")", ";", "temp", ".", "setShear", "(", "proportionX", ",", "proportionY", ")", ";", "multiply", ...
Shears the transformation. @param proportionX The proportion of shearing in x direction. @param proportionY The proportion of shearing in y direction.
[ "Shears", "the", "transformation", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L826-L830
112,243
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.rotate
public void rotate(double cos, double sin, Point2D rotationCenter) { Transformation2D temp = new Transformation2D(); temp.setRotate(cos, sin, rotationCenter); multiply(temp); }
java
public void rotate(double cos, double sin, Point2D rotationCenter) { Transformation2D temp = new Transformation2D(); temp.setRotate(cos, sin, rotationCenter); multiply(temp); }
[ "public", "void", "rotate", "(", "double", "cos", ",", "double", "sin", ",", "Point2D", "rotationCenter", ")", "{", "Transformation2D", "temp", "=", "new", "Transformation2D", "(", ")", ";", "temp", ".", "setRotate", "(", "cos", ",", "sin", ",", "rotationC...
Rotates the transformation aroung a center point. @param cos The cos angle of the rotation. @param sin sin angle of the rotation. @param rotationCenter The center point of the rotation.
[ "Rotates", "the", "transformation", "aroung", "a", "center", "point", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L868-L872
112,244
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Transformation2D.java
Transformation2D.inverse
public void inverse(Transformation2D inverse) { double det = xx * yy - xy * yx; if (det == 0) { inverse.setZero(); return; } det = 1 / det; inverse.xd = (xy * yd - xd * yy) * det; inverse.yd = (xd * yx - xx * yd) * det; inverse.xx = yy * det; inverse.xy = -xy * det; inverse.yx = -yx * det; ...
java
public void inverse(Transformation2D inverse) { double det = xx * yy - xy * yx; if (det == 0) { inverse.setZero(); return; } det = 1 / det; inverse.xd = (xy * yd - xd * yy) * det; inverse.yd = (xd * yx - xx * yd) * det; inverse.xx = yy * det; inverse.xy = -xy * det; inverse.yx = -yx * det; ...
[ "public", "void", "inverse", "(", "Transformation2D", "inverse", ")", "{", "double", "det", "=", "xx", "*", "yy", "-", "xy", "*", "yx", ";", "if", "(", "det", "==", "0", ")", "{", "inverse", ".", "setZero", "(", ")", ";", "return", ";", "}", "det...
Produces inverse matrix for this matrix and puts result into the inverse parameter. @param inverse The result inverse matrix.
[ "Produces", "inverse", "matrix", "for", "this", "matrix", "and", "puts", "result", "into", "the", "inverse", "parameter", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Transformation2D.java#L881-L897
112,245
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/PointInPolygonHelper.java
PointInPolygonHelper._isRingInRing2D
static boolean _isRingInRing2D(MultiPath polygon, int iRing1, int iRing2, double tolerance, QuadTree quadTree) { MultiPathImpl polygonImpl = (MultiPathImpl) polygon._getImpl(); SegmentIteratorImpl segIter = polygonImpl.querySegmentIterator(); segIter.resetToPath(iRing1); if (!segIter.nextPath() || !segIter.h...
java
static boolean _isRingInRing2D(MultiPath polygon, int iRing1, int iRing2, double tolerance, QuadTree quadTree) { MultiPathImpl polygonImpl = (MultiPathImpl) polygon._getImpl(); SegmentIteratorImpl segIter = polygonImpl.querySegmentIterator(); segIter.resetToPath(iRing1); if (!segIter.nextPath() || !segIter.h...
[ "static", "boolean", "_isRingInRing2D", "(", "MultiPath", "polygon", ",", "int", "iRing1", ",", "int", "iRing2", ",", "double", "tolerance", ",", "QuadTree", "quadTree", ")", "{", "MultiPathImpl", "polygonImpl", "=", "(", "MultiPathImpl", ")", "polygon", ".", ...
we assume that all of Ring1 is inside Ring2.
[ "we", "assume", "that", "all", "of", "Ring1", "is", "inside", "Ring2", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/PointInPolygonHelper.java#L394-L417
112,246
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPath.java
MultiPath.add
public void add(MultiPath src, boolean bReversePaths) { m_impl.add((MultiPathImpl) src._getImpl(), bReversePaths); }
java
public void add(MultiPath src, boolean bReversePaths) { m_impl.add((MultiPathImpl) src._getImpl(), bReversePaths); }
[ "public", "void", "add", "(", "MultiPath", "src", ",", "boolean", "bReversePaths", ")", "{", "m_impl", ".", "add", "(", "(", "MultiPathImpl", ")", "src", ".", "_getImpl", "(", ")", ",", "bReversePaths", ")", ";", "}" ]
Appends all paths from another multipath. @param src The multipath to append to this multipath. @param bReversePaths TRUE if the multipath is added should be added with its paths reversed.
[ "Appends", "all", "paths", "from", "another", "multipath", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPath.java#L248-L250
112,247
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPath.java
MultiPath.addPath
public void addPath(MultiPath src, int srcPathIndex, boolean bForward) { m_impl.addPath((MultiPathImpl) src._getImpl(), srcPathIndex, bForward); }
java
public void addPath(MultiPath src, int srcPathIndex, boolean bForward) { m_impl.addPath((MultiPathImpl) src._getImpl(), srcPathIndex, bForward); }
[ "public", "void", "addPath", "(", "MultiPath", "src", ",", "int", "srcPathIndex", ",", "boolean", "bForward", ")", "{", "m_impl", ".", "addPath", "(", "(", "MultiPathImpl", ")", "src", ".", "_getImpl", "(", ")", ",", "srcPathIndex", ",", "bForward", ")", ...
Copies a path from another multipath. @param src The multipath to copy from. @param srcPathIndex The index of the path in the the source MultiPath. @param bForward When FALSE, the points are inserted in reverse order.
[ "Copies", "a", "path", "from", "another", "multipath", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPath.java#L262-L264
112,248
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPath.java
MultiPath.addPath
void addPath(Point2D[] points, int count, boolean bForward) { m_impl.addPath(points, count, bForward); }
java
void addPath(Point2D[] points, int count, boolean bForward) { m_impl.addPath(points, count, bForward); }
[ "void", "addPath", "(", "Point2D", "[", "]", "points", ",", "int", "count", ",", "boolean", "bForward", ")", "{", "m_impl", ".", "addPath", "(", "points", ",", "count", ",", "bForward", ")", ";", "}" ]
Adds a new path to this multipath. @param points The array of points to add to this multipath. @param count The number of points added to the mulitpath. @param bForward When FALSE, the points are inserted in reverse order.
[ "Adds", "a", "new", "path", "to", "this", "multipath", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPath.java#L276-L278
112,249
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPath.java
MultiPath.addSegmentsFromPath
public void addSegmentsFromPath(MultiPath src, int srcPathIndex, int srcSegmentFrom, int srcSegmentCount, boolean bStartNewPath) { m_impl.addSegmentsFromPath((MultiPathImpl) src._getImpl(), srcPathIndex, srcSegmentFrom, srcSegmentCount, bStartNewPath); }
java
public void addSegmentsFromPath(MultiPath src, int srcPathIndex, int srcSegmentFrom, int srcSegmentCount, boolean bStartNewPath) { m_impl.addSegmentsFromPath((MultiPathImpl) src._getImpl(), srcPathIndex, srcSegmentFrom, srcSegmentCount, bStartNewPath); }
[ "public", "void", "addSegmentsFromPath", "(", "MultiPath", "src", ",", "int", "srcPathIndex", ",", "int", "srcSegmentFrom", ",", "int", "srcSegmentCount", ",", "boolean", "bStartNewPath", ")", "{", "m_impl", ".", "addSegmentsFromPath", "(", "(", "MultiPathImpl", "...
Adds segments from a source multipath to this MultiPath. @param src The source MultiPath to add segments from. @param srcPathIndex The index of the path in the the source MultiPath. @param srcSegmentFrom The index of first segment in the path to start adding from. The value has to be between 0 and src.getSegmentCount(...
[ "Adds", "segments", "from", "a", "source", "multipath", "to", "this", "MultiPath", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPath.java#L309-L313
112,250
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPath.java
MultiPath.insertPath
public void insertPath(int pathIndex, MultiPath src, int srcPathIndex, boolean bForward) { m_impl.insertPath(pathIndex, (MultiPathImpl) src._getImpl(), srcPathIndex, bForward); }
java
public void insertPath(int pathIndex, MultiPath src, int srcPathIndex, boolean bForward) { m_impl.insertPath(pathIndex, (MultiPathImpl) src._getImpl(), srcPathIndex, bForward); }
[ "public", "void", "insertPath", "(", "int", "pathIndex", ",", "MultiPath", "src", ",", "int", "srcPathIndex", ",", "boolean", "bForward", ")", "{", "m_impl", ".", "insertPath", "(", "pathIndex", ",", "(", "MultiPathImpl", ")", "src", ".", "_getImpl", "(", ...
Inserts a path from another multipath. @param pathIndex The start index of the multipath to insert. @param src The multipath to insert into this multipath. Can be the same as the multipath being modified. @param srcPathIndex The start index to insert the path into the multipath. @param bForward When FALSE, the points ...
[ "Inserts", "a", "path", "from", "another", "multipath", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPath.java#L367-L371
112,251
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPath.java
MultiPath.insertPath
void insertPath(int pathIndex, Point2D[] points, int pointsOffset, int count, boolean bForward) { m_impl.insertPath(pathIndex, points, pointsOffset, count, bForward); }
java
void insertPath(int pathIndex, Point2D[] points, int pointsOffset, int count, boolean bForward) { m_impl.insertPath(pathIndex, points, pointsOffset, count, bForward); }
[ "void", "insertPath", "(", "int", "pathIndex", ",", "Point2D", "[", "]", "points", ",", "int", "pointsOffset", ",", "int", "count", ",", "boolean", "bForward", ")", "{", "m_impl", ".", "insertPath", "(", "pathIndex", ",", "points", ",", "pointsOffset", ","...
Inserts a path from an array of 2D Points. @param pathIndex The path index of the multipath to place the new path. @param points The array of points defining the new path. @param pointsOffset The offset into the array to start reading. @param count The number of points to insert into the new path. @param bForward When...
[ "Inserts", "a", "path", "from", "an", "array", "of", "2D", "Points", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPath.java#L387-L390
112,252
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPath.java
MultiPath.insertPoints
public void insertPoints(int pathIndex, int beforePointIndex, MultiPath src, int srcPathIndex, int srcPointIndexFrom, int srcPointCount, boolean bForward) { m_impl.insertPoints(pathIndex, beforePointIndex, (MultiPathImpl) src._getImpl(), srcPathIndex, srcPointIndexFrom, srcPointCount, bForward); }
java
public void insertPoints(int pathIndex, int beforePointIndex, MultiPath src, int srcPathIndex, int srcPointIndexFrom, int srcPointCount, boolean bForward) { m_impl.insertPoints(pathIndex, beforePointIndex, (MultiPathImpl) src._getImpl(), srcPathIndex, srcPointIndexFrom, srcPointCount, bForward); }
[ "public", "void", "insertPoints", "(", "int", "pathIndex", ",", "int", "beforePointIndex", ",", "MultiPath", "src", ",", "int", "srcPathIndex", ",", "int", "srcPointIndexFrom", ",", "int", "srcPointCount", ",", "boolean", "bForward", ")", "{", "m_impl", ".", "...
Inserts vertices from the given multipath into this multipath. All added vertices are connected by linear segments with each other and with the existing vertices. @param pathIndex The path index in this multipath to insert points to. Must correspond to an existing path. @param beforePointIndex The point index before a...
[ "Inserts", "vertices", "from", "the", "given", "multipath", "into", "this", "multipath", ".", "All", "added", "vertices", "are", "connected", "by", "linear", "segments", "with", "each", "other", "and", "with", "the", "existing", "vertices", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPath.java#L416-L422
112,253
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPath.java
MultiPath.insertPoints
void insertPoints(int pathIndex, int beforePointIndex, Point2D[] src, int srcPointIndexFrom, int srcPointCount, boolean bForward) { m_impl.insertPoints(pathIndex, beforePointIndex, src, srcPointIndexFrom, srcPointCount, bForward); }
java
void insertPoints(int pathIndex, int beforePointIndex, Point2D[] src, int srcPointIndexFrom, int srcPointCount, boolean bForward) { m_impl.insertPoints(pathIndex, beforePointIndex, src, srcPointIndexFrom, srcPointCount, bForward); }
[ "void", "insertPoints", "(", "int", "pathIndex", ",", "int", "beforePointIndex", ",", "Point2D", "[", "]", "src", ",", "int", "srcPointIndexFrom", ",", "int", "srcPointCount", ",", "boolean", "bForward", ")", "{", "m_impl", ".", "insertPoints", "(", "pathIndex...
Inserts a part of a path from the given array. @param pathIndex The path index in this class to insert points to. Must correspond to an existing path. @param beforePointIndex The point index in the given path of this MultiPath before which the vertices need to be inserted. This value must be between 0 and GetPathSize(...
[ "Inserts", "a", "part", "of", "a", "path", "from", "the", "given", "array", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPath.java#L444-L448
112,254
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/MultiPath.java
MultiPath.bezierTo
void bezierTo(Point2D controlPoint1, Point2D controlPoint2, Point2D endPoint) { m_impl.bezierTo(controlPoint1, controlPoint2, endPoint); }
java
void bezierTo(Point2D controlPoint1, Point2D controlPoint2, Point2D endPoint) { m_impl.bezierTo(controlPoint1, controlPoint2, endPoint); }
[ "void", "bezierTo", "(", "Point2D", "controlPoint1", ",", "Point2D", "controlPoint2", ",", "Point2D", "endPoint", ")", "{", "m_impl", ".", "bezierTo", "(", "controlPoint1", ",", "controlPoint2", ",", "endPoint", ")", ";", "}" ]
Adds a Cubic Bezier Segment to the current Path. The Bezier Segment connects the current last Point and the given endPoint.
[ "Adds", "a", "Cubic", "Bezier", "Segment", "to", "the", "current", "Path", ".", "The", "Bezier", "Segment", "connects", "the", "current", "last", "Point", "and", "the", "given", "endPoint", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/MultiPath.java#L615-L617
112,255
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/VertexDescription.java
VertexDescription.isDefaultValue
public static boolean isDefaultValue(int semantics, double v) { return NumberUtils.doubleToInt64Bits(_defaultValues[semantics]) == NumberUtils .doubleToInt64Bits(v); }
java
public static boolean isDefaultValue(int semantics, double v) { return NumberUtils.doubleToInt64Bits(_defaultValues[semantics]) == NumberUtils .doubleToInt64Bits(v); }
[ "public", "static", "boolean", "isDefaultValue", "(", "int", "semantics", ",", "double", "v", ")", "{", "return", "NumberUtils", ".", "doubleToInt64Bits", "(", "_defaultValues", "[", "semantics", "]", ")", "==", "NumberUtils", ".", "doubleToInt64Bits", "(", "v",...
Checks if the given value is the default one. The simple equality test with GetDefaultValue does not work due to the use of NaNs as default value for some parameters.
[ "Checks", "if", "the", "given", "value", "is", "the", "default", "one", ".", "The", "simple", "equality", "test", "with", "GetDefaultValue", "does", "not", "work", "due", "to", "the", "use", "of", "NaNs", "as", "default", "value", "for", "some", "parameter...
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/VertexDescription.java#L257-L260
112,256
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Treap.java
Treap.createTreap
public int createTreap(int treap_data) { int treap = m_treapData.newElement(); setSize_(0, treap); setTreapData_(treap_data, treap); return treap; }
java
public int createTreap(int treap_data) { int treap = m_treapData.newElement(); setSize_(0, treap); setTreapData_(treap_data, treap); return treap; }
[ "public", "int", "createTreap", "(", "int", "treap_data", ")", "{", "int", "treap", "=", "m_treapData", ".", "newElement", "(", ")", ";", "setSize_", "(", "0", ",", "treap", ")", ";", "setTreapData_", "(", "treap_data", ",", "treap", ")", ";", "return", ...
Create a new treap and returns the treap handle.
[ "Create", "a", "new", "treap", "and", "returns", "the", "treap", "handle", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Treap.java#L115-L120
112,257
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Treap.java
Treap.addElement
public int addElement(int element, int treap) { int treap_; if (treap == -1) { if (m_defaultTreap == nullNode()) m_defaultTreap = createTreap(-1); treap_ = m_defaultTreap; } else { treap_ = treap; } return addElement_(element, 0, treap_); }
java
public int addElement(int element, int treap) { int treap_; if (treap == -1) { if (m_defaultTreap == nullNode()) m_defaultTreap = createTreap(-1); treap_ = m_defaultTreap; } else { treap_ = treap; } return addElement_(element, 0, treap_); }
[ "public", "int", "addElement", "(", "int", "element", ",", "int", "treap", ")", "{", "int", "treap_", ";", "if", "(", "treap", "==", "-", "1", ")", "{", "if", "(", "m_defaultTreap", "==", "nullNode", "(", ")", ")", "m_defaultTreap", "=", "createTreap",...
Adds new element to the treap. Allows duplicates to be added.
[ "Adds", "new", "element", "to", "the", "treap", ".", "Allows", "duplicates", "to", "be", "added", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Treap.java#L128-L139
112,258
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Treap.java
Treap.addUniqueElement
public int addUniqueElement(int element, int treap) { int treap_; if (treap == -1) { if (m_defaultTreap == nullNode()) m_defaultTreap = createTreap(-1); treap_ = m_defaultTreap; } else { treap_ = treap; } return addElement_(element, 1, treap_); }
java
public int addUniqueElement(int element, int treap) { int treap_; if (treap == -1) { if (m_defaultTreap == nullNode()) m_defaultTreap = createTreap(-1); treap_ = m_defaultTreap; } else { treap_ = treap; } return addElement_(element, 1, treap_); }
[ "public", "int", "addUniqueElement", "(", "int", "element", ",", "int", "treap", ")", "{", "int", "treap_", ";", "if", "(", "treap", "==", "-", "1", ")", "{", "if", "(", "m_defaultTreap", "==", "nullNode", "(", ")", ")", "m_defaultTreap", "=", "createT...
the already existing element equal to element.
[ "the", "already", "existing", "element", "equal", "to", "element", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Treap.java#L144-L155
112,259
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Treap.java
Treap.addElementAtPosition
public int addElementAtPosition(int prevNode, int nextNode, int element, boolean bUnique, boolean bCallCompare, int treap) { int treap_ = treap; if (treap_ == -1) { if (m_defaultTreap == nullNode()) m_defaultTreap = createTreap(-1); treap_ = m_defaultTreap; } // dbg_check_(m_root); if (getRoot_(...
java
public int addElementAtPosition(int prevNode, int nextNode, int element, boolean bUnique, boolean bCallCompare, int treap) { int treap_ = treap; if (treap_ == -1) { if (m_defaultTreap == nullNode()) m_defaultTreap = createTreap(-1); treap_ = m_defaultTreap; } // dbg_check_(m_root); if (getRoot_(...
[ "public", "int", "addElementAtPosition", "(", "int", "prevNode", ",", "int", "nextNode", ",", "int", "element", ",", "boolean", "bUnique", ",", "boolean", "bCallCompare", ",", "int", "treap", ")", "{", "int", "treap_", "=", "treap", ";", "if", "(", "treap_...
get_duplicate_element reutrns the node of the already existing element.
[ "get_duplicate_element", "reutrns", "the", "node", "of", "the", "already", "existing", "element", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Treap.java#L200-L298
112,260
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Treap.java
Treap.deleteNode
public void deleteNode(int treap_node_index, int treap) { touch_(); // assert(isValidNode(treap_node_index)); if (m_comparator != null) m_comparator.onDeleteImpl_(this, treap_node_index); int treap_; if (treap == -1) treap_ = m_defaultTreap; else treap_ = treap; if (!m_b_balancing) { unbalan...
java
public void deleteNode(int treap_node_index, int treap) { touch_(); // assert(isValidNode(treap_node_index)); if (m_comparator != null) m_comparator.onDeleteImpl_(this, treap_node_index); int treap_; if (treap == -1) treap_ = m_defaultTreap; else treap_ = treap; if (!m_b_balancing) { unbalan...
[ "public", "void", "deleteNode", "(", "int", "treap_node_index", ",", "int", "treap", ")", "{", "touch_", "(", ")", ";", "// assert(isValidNode(treap_node_index));", "if", "(", "m_comparator", "!=", "null", ")", "m_comparator", ".", "onDeleteImpl_", "(", "this", ...
Removes a node from the treap. Throws if doesn't exist.
[ "Removes", "a", "node", "from", "the", "treap", ".", "Throws", "if", "doesn", "t", "exist", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Treap.java#L309-L325
112,261
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Treap.java
Treap.search
public int search(int data, int treap) { int cur = getRoot(treap); while (cur != nullNode()) { int res = m_comparator.compare(this, data, cur); if (res == 0) return cur; else if (res < 0) cur = getLeft(cur); else cur = getRight(cur); } m_comparator.onEndSearchImpl_(data); return nullN...
java
public int search(int data, int treap) { int cur = getRoot(treap); while (cur != nullNode()) { int res = m_comparator.compare(this, data, cur); if (res == 0) return cur; else if (res < 0) cur = getLeft(cur); else cur = getRight(cur); } m_comparator.onEndSearchImpl_(data); return nullN...
[ "public", "int", "search", "(", "int", "data", ",", "int", "treap", ")", "{", "int", "cur", "=", "getRoot", "(", "treap", ")", ";", "while", "(", "cur", "!=", "nullNode", "(", ")", ")", "{", "int", "res", "=", "m_comparator", ".", "compare", "(", ...
Finds an element in the treap and returns its node or -1.
[ "Finds", "an", "element", "in", "the", "treap", "and", "returns", "its", "node", "or", "-", "1", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Treap.java#L328-L342
112,262
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Treap.java
Treap.setElement
public void setElement(int treap_node_index, int newElement) { if (m_comparator != null) m_comparator.onSetImpl_(this, treap_node_index); setElement_(treap_node_index, newElement); }
java
public void setElement(int treap_node_index, int newElement) { if (m_comparator != null) m_comparator.onSetImpl_(this, treap_node_index); setElement_(treap_node_index, newElement); }
[ "public", "void", "setElement", "(", "int", "treap_node_index", ",", "int", "newElement", ")", "{", "if", "(", "m_comparator", "!=", "null", ")", "m_comparator", ".", "onSetImpl_", "(", "this", ",", "treap_node_index", ")", ";", "setElement_", "(", "treap_node...
element will change the sorted order.
[ "element", "will", "change", "the", "sorted", "order", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Treap.java#L447-L451
112,263
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/OperatorCentroid2DLocal.java
OperatorCentroid2DLocal.computePointsCentroid
private static Point2D computePointsCentroid(MultiPoint multiPoint) { double xSum = 0; double ySum = 0; int pointCount = multiPoint.getPointCount(); Point2D point2D = new Point2D(); for (int i = 0; i < pointCount; i++) { multiPoint.getXY(i, point2D); x...
java
private static Point2D computePointsCentroid(MultiPoint multiPoint) { double xSum = 0; double ySum = 0; int pointCount = multiPoint.getPointCount(); Point2D point2D = new Point2D(); for (int i = 0; i < pointCount; i++) { multiPoint.getXY(i, point2D); x...
[ "private", "static", "Point2D", "computePointsCentroid", "(", "MultiPoint", "multiPoint", ")", "{", "double", "xSum", "=", "0", ";", "double", "ySum", "=", "0", ";", "int", "pointCount", "=", "multiPoint", ".", "getPointCount", "(", ")", ";", "Point2D", "poi...
Points centroid is arithmetic mean of the input points
[ "Points", "centroid", "is", "arithmetic", "mean", "of", "the", "input", "points" ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/OperatorCentroid2DLocal.java#L62-L74
112,264
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/OperatorCentroid2DLocal.java
OperatorCentroid2DLocal.computePolylineCentroid
private static Point2D computePolylineCentroid(Polyline polyline) { double xSum = 0; double ySum = 0; double weightSum = 0; Point2D startPoint = new Point2D(); Point2D endPoint = new Point2D(); for (int i = 0; i < polyline.getPathCount(); i++) { polyline....
java
private static Point2D computePolylineCentroid(Polyline polyline) { double xSum = 0; double ySum = 0; double weightSum = 0; Point2D startPoint = new Point2D(); Point2D endPoint = new Point2D(); for (int i = 0; i < polyline.getPathCount(); i++) { polyline....
[ "private", "static", "Point2D", "computePolylineCentroid", "(", "Polyline", "polyline", ")", "{", "double", "xSum", "=", "0", ";", "double", "ySum", "=", "0", ";", "double", "weightSum", "=", "0", ";", "Point2D", "startPoint", "=", "new", "Point2D", "(", "...
Lines centroid is weighted mean of each line segment, weight in terms of line length
[ "Lines", "centroid", "is", "weighted", "mean", "of", "each", "line", "segment", "weight", "in", "terms", "of", "line", "length" ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/OperatorCentroid2DLocal.java#L77-L96
112,265
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Geometry.java
Geometry.mergeVertexDescription
public void mergeVertexDescription(VertexDescription src) { _touch(); if (src == m_description) return; // check if we need to do anything (if the src has same attributes) VertexDescription newdescription = VertexDescriptionDesignerImpl.getMergedVertexDescription(m_description, src); if (newdescription ==...
java
public void mergeVertexDescription(VertexDescription src) { _touch(); if (src == m_description) return; // check if we need to do anything (if the src has same attributes) VertexDescription newdescription = VertexDescriptionDesignerImpl.getMergedVertexDescription(m_description, src); if (newdescription ==...
[ "public", "void", "mergeVertexDescription", "(", "VertexDescription", "src", ")", "{", "_touch", "(", ")", ";", "if", "(", "src", "==", "m_description", ")", "return", ";", "// check if we need to do anything (if the src has same attributes)", "VertexDescription", "newdes...
Merges the new VertexDescription by adding missing attributes from the src. The Geometry will have a union of the current and the src descriptions. @param src VertexDescription to merge.
[ "Merges", "the", "new", "VertexDescription", "by", "adding", "missing", "attributes", "from", "the", "src", ".", "The", "Geometry", "will", "have", "a", "union", "of", "the", "current", "and", "the", "src", "descriptions", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Geometry.java#L198-L209
112,266
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Geometry.java
Geometry.addAttribute
public void addAttribute(int semantics) { _touch(); if (m_description.hasAttribute(semantics)) return; VertexDescription newvd = VertexDescriptionDesignerImpl.getMergedVertexDescription(m_description, semantics); _assignVertexDescriptionImpl(newvd); }
java
public void addAttribute(int semantics) { _touch(); if (m_description.hasAttribute(semantics)) return; VertexDescription newvd = VertexDescriptionDesignerImpl.getMergedVertexDescription(m_description, semantics); _assignVertexDescriptionImpl(newvd); }
[ "public", "void", "addAttribute", "(", "int", "semantics", ")", "{", "_touch", "(", ")", ";", "if", "(", "m_description", ".", "hasAttribute", "(", "semantics", ")", ")", "return", ";", "VertexDescription", "newvd", "=", "VertexDescriptionDesignerImpl", ".", "...
Adds a new attribute to the Geometry. @param semantics The VertexDescription.Semantics to add.
[ "Adds", "a", "new", "attribute", "to", "the", "Geometry", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Geometry.java#L225-L232
112,267
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/Geometry.java
Geometry.dropAttribute
public void dropAttribute(int semantics) { _touch(); if (!m_description.hasAttribute(semantics)) return; VertexDescription newvd = VertexDescriptionDesignerImpl.removeSemanticsFromVertexDescription(m_description, semantics); _assignVertexDescriptionImpl(newvd); }
java
public void dropAttribute(int semantics) { _touch(); if (!m_description.hasAttribute(semantics)) return; VertexDescription newvd = VertexDescriptionDesignerImpl.removeSemanticsFromVertexDescription(m_description, semantics); _assignVertexDescriptionImpl(newvd); }
[ "public", "void", "dropAttribute", "(", "int", "semantics", ")", "{", "_touch", "(", ")", ";", "if", "(", "!", "m_description", ".", "hasAttribute", "(", "semantics", ")", ")", "return", ";", "VertexDescription", "newvd", "=", "VertexDescriptionDesignerImpl", ...
Drops an attribute from the Geometry. Dropping the attribute is equivalent to setting the attribute to the default value for each vertex, However, it is faster and the result Geometry has smaller memory footprint and smaller size when persisted. @param semantics The VertexDescription.Semantics to drop.
[ "Drops", "an", "attribute", "from", "the", "Geometry", ".", "Dropping", "the", "attribute", "is", "equivalent", "to", "setting", "the", "attribute", "to", "the", "default", "value", "for", "each", "vertex", "However", "it", "is", "faster", "and", "the", "res...
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/Geometry.java#L241-L248
112,268
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexMultiList.java
IndexMultiList.createList
int createList() { int node = newList_(); if (m_b_allow_navigation_between_lists) { m_lists.setField(node, 3, m_list_of_lists); if (m_list_of_lists != nullNode()) m_lists.setField(m_list_of_lists, 2, node); m_list_of_lists = node; } return node; }
java
int createList() { int node = newList_(); if (m_b_allow_navigation_between_lists) { m_lists.setField(node, 3, m_list_of_lists); if (m_list_of_lists != nullNode()) m_lists.setField(m_list_of_lists, 2, node); m_list_of_lists = node; } return node; }
[ "int", "createList", "(", ")", "{", "int", "node", "=", "newList_", "(", ")", ";", "if", "(", "m_b_allow_navigation_between_lists", ")", "{", "m_lists", ".", "setField", "(", "node", ",", "3", ",", "m_list_of_lists", ")", ";", "if", "(", "m_list_of_lists",...
Creates new list and returns it's handle.
[ "Creates", "new", "list", "and", "returns", "it", "s", "handle", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexMultiList.java#L79-L89
112,269
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexMultiList.java
IndexMultiList.deleteList
void deleteList(int list) { int ptr = getFirst(list); while (ptr != nullNode()) { int p = ptr; ptr = getNext(ptr); freeNode_(p); } if (m_b_allow_navigation_between_lists) { int prevList = m_lists.getField(list, 2); int nextList = m_lists.getField(list, 3); if (prevList != nullNode()) m_li...
java
void deleteList(int list) { int ptr = getFirst(list); while (ptr != nullNode()) { int p = ptr; ptr = getNext(ptr); freeNode_(p); } if (m_b_allow_navigation_between_lists) { int prevList = m_lists.getField(list, 2); int nextList = m_lists.getField(list, 3); if (prevList != nullNode()) m_li...
[ "void", "deleteList", "(", "int", "list", ")", "{", "int", "ptr", "=", "getFirst", "(", "list", ")", ";", "while", "(", "ptr", "!=", "nullNode", "(", ")", ")", "{", "int", "p", "=", "ptr", ";", "ptr", "=", "getNext", "(", "ptr", ")", ";", "free...
Deletes a list.
[ "Deletes", "a", "list", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexMultiList.java#L92-L113
112,270
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexMultiList.java
IndexMultiList.deleteElement
void deleteElement(int list, int prevNode, int node) { if (prevNode != nullNode()) { assert (m_listNodes.getField(prevNode, 1) == node); m_listNodes.setField(prevNode, 1, m_listNodes.getField(node, 1)); if (m_lists.getField(list, 1) == node)// deleting a tail { m_lists.setField(list, 1, prevNode); ...
java
void deleteElement(int list, int prevNode, int node) { if (prevNode != nullNode()) { assert (m_listNodes.getField(prevNode, 1) == node); m_listNodes.setField(prevNode, 1, m_listNodes.getField(node, 1)); if (m_lists.getField(list, 1) == node)// deleting a tail { m_lists.setField(list, 1, prevNode); ...
[ "void", "deleteElement", "(", "int", "list", ",", "int", "prevNode", ",", "int", "node", ")", "{", "if", "(", "prevNode", "!=", "nullNode", "(", ")", ")", "{", "assert", "(", "m_listNodes", ".", "getField", "(", "prevNode", ",", "1", ")", "==", "node...
required, because the list is singly connected).
[ "required", "because", "the", "list", "is", "singly", "connected", ")", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexMultiList.java#L147-L164
112,271
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexMultiList.java
IndexMultiList.concatenateLists
int concatenateLists(int list1, int list2) { int tailNode1 = m_lists.getField(list1, 1); int headNode2 = m_lists.getField(list2, 0); if (headNode2 != nullNode())// do not concatenate empty lists { if (tailNode1 != nullNode()) { // connect head of list2 to the tail of list1. m_listNodes.setField(tailN...
java
int concatenateLists(int list1, int list2) { int tailNode1 = m_lists.getField(list1, 1); int headNode2 = m_lists.getField(list2, 0); if (headNode2 != nullNode())// do not concatenate empty lists { if (tailNode1 != nullNode()) { // connect head of list2 to the tail of list1. m_listNodes.setField(tailN...
[ "int", "concatenateLists", "(", "int", "list1", ",", "int", "list2", ")", "{", "int", "tailNode1", "=", "m_lists", ".", "getField", "(", "list1", ",", "1", ")", ";", "int", "headNode2", "=", "m_lists", ".", "getField", "(", "list2", ",", "0", ")", ";...
Returns list1.
[ "Returns", "list1", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexMultiList.java#L169-L199
112,272
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexHashTable.java
IndexHashTable.addElement
public int addElement(int element, int hash) { int bit_bucket = hash % (m_bit_filter.length << 5); m_bit_filter[(bit_bucket >> 5)] |= (1 << (bit_bucket & 0x1F)); int bucket = hash % m_hashBuckets.size(); int list = m_hashBuckets.get(bucket); if (list == -1) { list = m_lists.createList(); m_hashBuckets.s...
java
public int addElement(int element, int hash) { int bit_bucket = hash % (m_bit_filter.length << 5); m_bit_filter[(bit_bucket >> 5)] |= (1 << (bit_bucket & 0x1F)); int bucket = hash % m_hashBuckets.size(); int list = m_hashBuckets.get(bucket); if (list == -1) { list = m_lists.createList(); m_hashBuckets.s...
[ "public", "int", "addElement", "(", "int", "element", ",", "int", "hash", ")", "{", "int", "bit_bucket", "=", "hash", "%", "(", "m_bit_filter", ".", "length", "<<", "5", ")", ";", "m_bit_filter", "[", "(", "bit_bucket", ">>", "5", ")", "]", "|=", "("...
Adds new element to the hash table.
[ "Adds", "new", "element", "to", "the", "hash", "table", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexHashTable.java#L63-L74
112,273
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexHashTable.java
IndexHashTable.findNode
public int findNode(int element) { int hash = m_hash.getHash(element); int ptr = getFirstInBucket(hash); while (ptr != -1) { int e = m_lists.getElement(ptr); if (m_hash.equal(e, element)) { return ptr; } ptr = m_lists.getNext(ptr); } return -1; }
java
public int findNode(int element) { int hash = m_hash.getHash(element); int ptr = getFirstInBucket(hash); while (ptr != -1) { int e = m_lists.getElement(ptr); if (m_hash.equal(e, element)) { return ptr; } ptr = m_lists.getNext(ptr); } return -1; }
[ "public", "int", "findNode", "(", "int", "element", ")", "{", "int", "hash", "=", "m_hash", ".", "getHash", "(", "element", ")", ";", "int", "ptr", "=", "getFirstInBucket", "(", "hash", ")", ";", "while", "(", "ptr", "!=", "-", "1", ")", "{", "int"...
the given one.
[ "the", "given", "one", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexHashTable.java#L166-L179
112,274
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexHashTable.java
IndexHashTable.findNode
public int findNode(Object elementDescriptor) { int hash = m_hash.getHash(elementDescriptor); int ptr = getFirstInBucket(hash);; while (ptr != -1) { int e = m_lists.getElement(ptr); if (m_hash.equal(elementDescriptor, e)) { return ptr; } ptr = m_lists.getNext(ptr); } return -1; }
java
public int findNode(Object elementDescriptor) { int hash = m_hash.getHash(elementDescriptor); int ptr = getFirstInBucket(hash);; while (ptr != -1) { int e = m_lists.getElement(ptr); if (m_hash.equal(elementDescriptor, e)) { return ptr; } ptr = m_lists.getNext(ptr); } return -1; }
[ "public", "int", "findNode", "(", "Object", "elementDescriptor", ")", "{", "int", "hash", "=", "m_hash", ".", "getHash", "(", "elementDescriptor", ")", ";", "int", "ptr", "=", "getFirstInBucket", "(", "hash", ")", ";", ";", "while", "(", "ptr", "!=", "-"...
the given element descriptor.
[ "the", "given", "element", "descriptor", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexHashTable.java#L183-L196
112,275
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexHashTable.java
IndexHashTable.getNextNode
public int getNextNode(int elementHandle) { int element = m_lists.getElement(elementHandle); int ptr = m_lists.getNext(elementHandle); while (ptr != -1) { int e = m_lists.getElement(ptr); if (m_hash.equal(e, element)) { return ptr; } ptr = m_lists.getNext(ptr); } return -1; }
java
public int getNextNode(int elementHandle) { int element = m_lists.getElement(elementHandle); int ptr = m_lists.getNext(elementHandle); while (ptr != -1) { int e = m_lists.getElement(ptr); if (m_hash.equal(e, element)) { return ptr; } ptr = m_lists.getNext(ptr); } return -1; }
[ "public", "int", "getNextNode", "(", "int", "elementHandle", ")", "{", "int", "element", "=", "m_lists", ".", "getElement", "(", "elementHandle", ")", ";", "int", "ptr", "=", "m_lists", ".", "getNext", "(", "elementHandle", ")", ";", "while", "(", "ptr", ...
Gets next equal node.
[ "Gets", "next", "equal", "node", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexHashTable.java#L199-L212
112,276
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexHashTable.java
IndexHashTable.deleteNode
public void deleteNode(int node) { int element = getElement(node); int hash = m_hash.getHash(element); int bucket = hash % m_hashBuckets.size(); int list = m_hashBuckets.get(bucket); if (list == -1) throw new IllegalArgumentException(); int ptr = m_lists.getFirst(list); int prev = -1; while (ptr != ...
java
public void deleteNode(int node) { int element = getElement(node); int hash = m_hash.getHash(element); int bucket = hash % m_hashBuckets.size(); int list = m_hashBuckets.get(bucket); if (list == -1) throw new IllegalArgumentException(); int ptr = m_lists.getFirst(list); int prev = -1; while (ptr != ...
[ "public", "void", "deleteNode", "(", "int", "node", ")", "{", "int", "element", "=", "getElement", "(", "node", ")", ";", "int", "hash", "=", "m_hash", ".", "getHash", "(", "element", ")", ";", "int", "bucket", "=", "hash", "%", "m_hashBuckets", ".", ...
Removes a node.
[ "Removes", "a", "node", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexHashTable.java#L215-L240
112,277
Esri/geometry-api-java
src/main/java/com/esri/core/geometry/IndexHashTable.java
IndexHashTable.clear
public void clear() { Arrays.fill(m_bit_filter, 0); m_hashBuckets = new AttributeStreamOfInt32(m_hashBuckets.size(), nullNode()); m_lists.clear(); }
java
public void clear() { Arrays.fill(m_bit_filter, 0); m_hashBuckets = new AttributeStreamOfInt32(m_hashBuckets.size(), nullNode()); m_lists.clear(); }
[ "public", "void", "clear", "(", ")", "{", "Arrays", ".", "fill", "(", "m_bit_filter", ",", "0", ")", ";", "m_hashBuckets", "=", "new", "AttributeStreamOfInt32", "(", "m_hashBuckets", ".", "size", "(", ")", ",", "nullNode", "(", ")", ")", ";", "m_lists", ...
Removes all elements from the hash table.
[ "Removes", "all", "elements", "from", "the", "hash", "table", "." ]
494da8ec953d76e7c6072afbc081abfe48ff07cf
https://github.com/Esri/geometry-api-java/blob/494da8ec953d76e7c6072afbc081abfe48ff07cf/src/main/java/com/esri/core/geometry/IndexHashTable.java#L264-L270
112,278
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/view/ViewPropertyAnimator.java
ViewPropertyAnimator.animate
public static ViewPropertyAnimator animate(View view) { ViewPropertyAnimator animator = ANIMATORS.get(view); if (animator == null) { final int version = Integer.valueOf(Build.VERSION.SDK); if (version >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { animator = new Vie...
java
public static ViewPropertyAnimator animate(View view) { ViewPropertyAnimator animator = ANIMATORS.get(view); if (animator == null) { final int version = Integer.valueOf(Build.VERSION.SDK); if (version >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { animator = new Vie...
[ "public", "static", "ViewPropertyAnimator", "animate", "(", "View", "view", ")", "{", "ViewPropertyAnimator", "animator", "=", "ANIMATORS", ".", "get", "(", "view", ")", ";", "if", "(", "animator", "==", "null", ")", "{", "final", "int", "version", "=", "I...
This method returns a ViewPropertyAnimator object, which can be used to animate specific properties on this View. @param view View to animate. @return The ViewPropertyAnimator associated with this View.
[ "This", "method", "returns", "a", "ViewPropertyAnimator", "object", "which", "can", "be", "used", "to", "animate", "specific", "properties", "on", "this", "View", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/view/ViewPropertyAnimator.java#L57-L71
112,279
JakeWharton/NineOldAndroids
sample/src/com/jakewharton/nineoldandroids/sample/droidflakes/FlakeView.java
FlakeView.addFlakes
void addFlakes(int quantity) { for (int i = 0; i < quantity; ++i) { flakes.add(Flake.createFlake(getWidth(), droid)); } setNumFlakes(numFlakes + quantity); }
java
void addFlakes(int quantity) { for (int i = 0; i < quantity; ++i) { flakes.add(Flake.createFlake(getWidth(), droid)); } setNumFlakes(numFlakes + quantity); }
[ "void", "addFlakes", "(", "int", "quantity", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "quantity", ";", "++", "i", ")", "{", "flakes", ".", "add", "(", "Flake", ".", "createFlake", "(", "getWidth", "(", ")", ",", "droid", ")", ...
Add the specified number of droidflakes.
[ "Add", "the", "specified", "number", "of", "droidflakes", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/sample/src/com/jakewharton/nineoldandroids/sample/droidflakes/FlakeView.java#L102-L107
112,280
JakeWharton/NineOldAndroids
sample/src/com/jakewharton/nineoldandroids/sample/droidflakes/FlakeView.java
FlakeView.subtractFlakes
void subtractFlakes(int quantity) { for (int i = 0; i < quantity; ++i) { int index = numFlakes - i - 1; flakes.remove(index); } setNumFlakes(numFlakes - quantity); }
java
void subtractFlakes(int quantity) { for (int i = 0; i < quantity; ++i) { int index = numFlakes - i - 1; flakes.remove(index); } setNumFlakes(numFlakes - quantity); }
[ "void", "subtractFlakes", "(", "int", "quantity", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "quantity", ";", "++", "i", ")", "{", "int", "index", "=", "numFlakes", "-", "i", "-", "1", ";", "flakes", ".", "remove", "(", "index", ...
Subtract the specified number of droidflakes. We just take them off the end of the list, leaving the others unchanged.
[ "Subtract", "the", "specified", "number", "of", "droidflakes", ".", "We", "just", "take", "them", "off", "the", "end", "of", "the", "list", "leaving", "the", "others", "unchanged", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/sample/src/com/jakewharton/nineoldandroids/sample/droidflakes/FlakeView.java#L113-L119
112,281
JakeWharton/NineOldAndroids
sample/src/com/jakewharton/nineoldandroids/sample/droidflakes/Flake.java
Flake.createFlake
static Flake createFlake(float xRange, Bitmap originalBitmap) { Flake flake = new Flake(); // Size each flake with a width between 5 and 55 and a proportional height flake.width = (int)(5 + (float)Math.random() * 50); float hwRatio = originalBitmap.getHeight() / originalBitmap.getWidth()...
java
static Flake createFlake(float xRange, Bitmap originalBitmap) { Flake flake = new Flake(); // Size each flake with a width between 5 and 55 and a proportional height flake.width = (int)(5 + (float)Math.random() * 50); float hwRatio = originalBitmap.getHeight() / originalBitmap.getWidth()...
[ "static", "Flake", "createFlake", "(", "float", "xRange", ",", "Bitmap", "originalBitmap", ")", "{", "Flake", "flake", "=", "new", "Flake", "(", ")", ";", "// Size each flake with a width between 5 and 55 and a proportional height", "flake", ".", "width", "=", "(", ...
Creates a new droidflake in the given xRange and with the given bitmap. Parameters of location, size, rotation, and speed are randomly determined.
[ "Creates", "a", "new", "droidflake", "in", "the", "given", "xRange", "and", "with", "the", "given", "bitmap", ".", "Parameters", "of", "location", "size", "rotation", "and", "speed", "are", "randomly", "determined", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/sample/src/com/jakewharton/nineoldandroids/sample/droidflakes/Flake.java#L45-L73
112,282
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/PropertyValuesHolder.java
PropertyValuesHolder.ofObject
public static PropertyValuesHolder ofObject(String propertyName, TypeEvaluator evaluator, Object... values) { PropertyValuesHolder pvh = new PropertyValuesHolder(propertyName); pvh.setObjectValues(values); pvh.setEvaluator(evaluator); return pvh; }
java
public static PropertyValuesHolder ofObject(String propertyName, TypeEvaluator evaluator, Object... values) { PropertyValuesHolder pvh = new PropertyValuesHolder(propertyName); pvh.setObjectValues(values); pvh.setEvaluator(evaluator); return pvh; }
[ "public", "static", "PropertyValuesHolder", "ofObject", "(", "String", "propertyName", ",", "TypeEvaluator", "evaluator", ",", "Object", "...", "values", ")", "{", "PropertyValuesHolder", "pvh", "=", "new", "PropertyValuesHolder", "(", "propertyName", ")", ";", "pvh...
Constructs and returns a PropertyValuesHolder with a given property name and set of Object values. This variant also takes a TypeEvaluator because the system cannot automatically interpolate between objects of unknown type. @param propertyName The name of the property being animated. @param evaluator A TypeEvaluator t...
[ "Constructs", "and", "returns", "a", "PropertyValuesHolder", "with", "a", "given", "property", "name", "and", "set", "of", "Object", "values", ".", "This", "variant", "also", "takes", "a", "TypeEvaluator", "because", "the", "system", "cannot", "automatically", "...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/PropertyValuesHolder.java#L202-L208
112,283
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/PropertyValuesHolder.java
PropertyValuesHolder.ofObject
public static <V> PropertyValuesHolder ofObject(Property property, TypeEvaluator<V> evaluator, V... values) { PropertyValuesHolder pvh = new PropertyValuesHolder(property); pvh.setObjectValues(values); pvh.setEvaluator(evaluator); return pvh; }
java
public static <V> PropertyValuesHolder ofObject(Property property, TypeEvaluator<V> evaluator, V... values) { PropertyValuesHolder pvh = new PropertyValuesHolder(property); pvh.setObjectValues(values); pvh.setEvaluator(evaluator); return pvh; }
[ "public", "static", "<", "V", ">", "PropertyValuesHolder", "ofObject", "(", "Property", "property", ",", "TypeEvaluator", "<", "V", ">", "evaluator", ",", "V", "...", "values", ")", "{", "PropertyValuesHolder", "pvh", "=", "new", "PropertyValuesHolder", "(", "...
Constructs and returns a PropertyValuesHolder with a given property and set of Object values. This variant also takes a TypeEvaluator because the system cannot automatically interpolate between objects of unknown type. @param property The property being animated. Should not be null. @param evaluator A TypeEvaluator th...
[ "Constructs", "and", "returns", "a", "PropertyValuesHolder", "with", "a", "given", "property", "and", "set", "of", "Object", "values", ".", "This", "variant", "also", "takes", "a", "TypeEvaluator", "because", "the", "system", "cannot", "automatically", "interpolat...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/PropertyValuesHolder.java#L222-L228
112,284
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/PropertyValuesHolder.java
PropertyValuesHolder.setKeyframes
public void setKeyframes(Keyframe... values) { int numKeyframes = values.length; Keyframe keyframes[] = new Keyframe[Math.max(numKeyframes,2)]; mValueType = ((Keyframe)values[0]).getType(); for (int i = 0; i < numKeyframes; ++i) { keyframes[i] = (Keyframe)values[i]; }...
java
public void setKeyframes(Keyframe... values) { int numKeyframes = values.length; Keyframe keyframes[] = new Keyframe[Math.max(numKeyframes,2)]; mValueType = ((Keyframe)values[0]).getType(); for (int i = 0; i < numKeyframes; ++i) { keyframes[i] = (Keyframe)values[i]; }...
[ "public", "void", "setKeyframes", "(", "Keyframe", "...", "values", ")", "{", "int", "numKeyframes", "=", "values", ".", "length", ";", "Keyframe", "keyframes", "[", "]", "=", "new", "Keyframe", "[", "Math", ".", "max", "(", "numKeyframes", ",", "2", ")"...
Set the animated values for this object to this set of Keyframes. @param values One or more values that the animation will animate between.
[ "Set", "the", "animated", "values", "for", "this", "object", "to", "this", "set", "of", "Keyframes", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/PropertyValuesHolder.java#L336-L344
112,285
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/PropertyValuesHolder.java
PropertyValuesHolder.getPropertyFunction
private Method getPropertyFunction(Class targetClass, String prefix, Class valueType) { // TODO: faster implementation... Method returnVal = null; String methodName = getMethodName(prefix, mPropertyName); Class args[] = null; if (valueType == null) { try { ...
java
private Method getPropertyFunction(Class targetClass, String prefix, Class valueType) { // TODO: faster implementation... Method returnVal = null; String methodName = getMethodName(prefix, mPropertyName); Class args[] = null; if (valueType == null) { try { ...
[ "private", "Method", "getPropertyFunction", "(", "Class", "targetClass", ",", "String", "prefix", ",", "Class", "valueType", ")", "{", "// TODO: faster implementation...", "Method", "returnVal", "=", "null", ";", "String", "methodName", "=", "getMethodName", "(", "p...
Determine the setter or getter function using the JavaBeans convention of setFoo or getFoo for a property named 'foo'. This function figures out what the name of the function should be and uses reflection to find the Method with that name on the target object. @param targetClass The class to search for the method @par...
[ "Determine", "the", "setter", "or", "getter", "function", "using", "the", "JavaBeans", "convention", "of", "setFoo", "or", "getFoo", "for", "a", "property", "named", "foo", ".", "This", "function", "figures", "out", "what", "the", "name", "of", "the", "funct...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/PropertyValuesHolder.java#L379-L441
112,286
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/PropertyValuesHolder.java
PropertyValuesHolder.setupSetterOrGetter
private Method setupSetterOrGetter(Class targetClass, HashMap<Class, HashMap<String, Method>> propertyMapMap, String prefix, Class valueType) { Method setterOrGetter = null; try { // Have to lock property map prior to reading it, to guard against // anothe...
java
private Method setupSetterOrGetter(Class targetClass, HashMap<Class, HashMap<String, Method>> propertyMapMap, String prefix, Class valueType) { Method setterOrGetter = null; try { // Have to lock property map prior to reading it, to guard against // anothe...
[ "private", "Method", "setupSetterOrGetter", "(", "Class", "targetClass", ",", "HashMap", "<", "Class", ",", "HashMap", "<", "String", ",", "Method", ">", ">", "propertyMapMap", ",", "String", "prefix", ",", "Class", "valueType", ")", "{", "Method", "setterOrGe...
Returns the setter or getter requested. This utility function checks whether the requested method exists in the propertyMapMap cache. If not, it calls another utility function to request the Method from the targetClass directly. @param targetClass The Class on which the requested method should exist. @param propertyMap...
[ "Returns", "the", "setter", "or", "getter", "requested", ".", "This", "utility", "function", "checks", "whether", "the", "requested", "method", "exists", "in", "the", "propertyMapMap", "cache", ".", "If", "not", "it", "calls", "another", "utility", "function", ...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/PropertyValuesHolder.java#L454-L479
112,287
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/PropertyValuesHolder.java
PropertyValuesHolder.setupEndValue
void setupEndValue(Object target) { setupValue(target, mKeyframeSet.mKeyframes.get(mKeyframeSet.mKeyframes.size() - 1)); }
java
void setupEndValue(Object target) { setupValue(target, mKeyframeSet.mKeyframes.get(mKeyframeSet.mKeyframes.size() - 1)); }
[ "void", "setupEndValue", "(", "Object", "target", ")", "{", "setupValue", "(", "target", ",", "mKeyframeSet", ".", "mKeyframes", ".", "get", "(", "mKeyframeSet", ".", "mKeyframes", ".", "size", "(", ")", "-", "1", ")", ")", ";", "}" ]
This function is called by ObjectAnimator when setting the end values for an animation. The end values are set according to the current values in the target object. The property whose value is extracted is whatever is specified by the propertyName of this PropertyValuesHolder object. @param target The object which hol...
[ "This", "function", "is", "called", "by", "ObjectAnimator", "when", "setting", "the", "end", "values", "for", "an", "animation", ".", "The", "end", "values", "are", "set", "according", "to", "the", "current", "values", "in", "the", "target", "object", ".", ...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/PropertyValuesHolder.java#L587-L589
112,288
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/PropertyValuesHolder.java
PropertyValuesHolder.init
void init() { if (mEvaluator == null) { // We already handle int and float automatically, but not their Object // equivalents mEvaluator = (mValueType == Integer.class) ? sIntEvaluator : (mValueType == Float.class) ? sFloatEvaluator : n...
java
void init() { if (mEvaluator == null) { // We already handle int and float automatically, but not their Object // equivalents mEvaluator = (mValueType == Integer.class) ? sIntEvaluator : (mValueType == Float.class) ? sFloatEvaluator : n...
[ "void", "init", "(", ")", "{", "if", "(", "mEvaluator", "==", "null", ")", "{", "// We already handle int and float automatically, but not their Object", "// equivalents", "mEvaluator", "=", "(", "mValueType", "==", "Integer", ".", "class", ")", "?", "sIntEvaluator", ...
Internal function, called by ValueAnimator, to set up the TypeEvaluator that will be used to calculate animated values.
[ "Internal", "function", "called", "by", "ValueAnimator", "to", "set", "up", "the", "TypeEvaluator", "that", "will", "be", "used", "to", "calculate", "animated", "values", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/PropertyValuesHolder.java#L633-L646
112,289
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/view/ViewPropertyAnimatorPreHC.java
ViewPropertyAnimatorPreHC.setDuration
public ViewPropertyAnimator setDuration(long duration) { if (duration < 0) { throw new IllegalArgumentException("Animators cannot have negative duration: " + duration); } mDurationSet = true; mDuration = duration; return this; }
java
public ViewPropertyAnimator setDuration(long duration) { if (duration < 0) { throw new IllegalArgumentException("Animators cannot have negative duration: " + duration); } mDurationSet = true; mDuration = duration; return this; }
[ "public", "ViewPropertyAnimator", "setDuration", "(", "long", "duration", ")", "{", "if", "(", "duration", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Animators cannot have negative duration: \"", "+", "duration", ")", ";", "}", "mDuratio...
Sets the duration for the underlying animator that animates the requested properties. By default, the animator uses the default value for ValueAnimator. Calling this method will cause the declared value to be used instead. @param duration The length of ensuing property animations, in milliseconds. The value cannot be n...
[ "Sets", "the", "duration", "for", "the", "underlying", "animator", "that", "animates", "the", "requested", "properties", ".", "By", "default", "the", "animator", "uses", "the", "default", "value", "for", "ValueAnimator", ".", "Calling", "this", "method", "will",...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/view/ViewPropertyAnimatorPreHC.java#L225-L233
112,290
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/view/ViewPropertyAnimatorPreHC.java
ViewPropertyAnimatorPreHC.startAnimation
private void startAnimation() { ValueAnimator animator = ValueAnimator.ofFloat(1.0f); ArrayList<NameValuesHolder> nameValueList = (ArrayList<NameValuesHolder>) mPendingAnimations.clone(); mPendingAnimations.clear(); int propertyMask = 0; int propertyCount = nameVa...
java
private void startAnimation() { ValueAnimator animator = ValueAnimator.ofFloat(1.0f); ArrayList<NameValuesHolder> nameValueList = (ArrayList<NameValuesHolder>) mPendingAnimations.clone(); mPendingAnimations.clear(); int propertyMask = 0; int propertyCount = nameVa...
[ "private", "void", "startAnimation", "(", ")", "{", "ValueAnimator", "animator", "=", "ValueAnimator", ".", "ofFloat", "(", "1.0f", ")", ";", "ArrayList", "<", "NameValuesHolder", ">", "nameValueList", "=", "(", "ArrayList", "<", "NameValuesHolder", ">", ")", ...
Starts the underlying Animator for a set of properties. We use a single animator that simply runs from 0 to 1, and then use that fractional value to set each property value accordingly.
[ "Starts", "the", "underlying", "Animator", "for", "a", "set", "of", "properties", ".", "We", "use", "a", "single", "animator", "that", "simply", "runs", "from", "0", "to", "1", "and", "then", "use", "that", "fractional", "value", "to", "set", "each", "pr...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/view/ViewPropertyAnimatorPreHC.java#L435-L459
112,291
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/ObjectAnimator.java
ObjectAnimator.setTarget
@Override public void setTarget(Object target) { if (mTarget != target) { final Object oldTarget = mTarget; mTarget = target; if (oldTarget != null && target != null && oldTarget.getClass() == target.getClass()) { return; } // New t...
java
@Override public void setTarget(Object target) { if (mTarget != target) { final Object oldTarget = mTarget; mTarget = target; if (oldTarget != null && target != null && oldTarget.getClass() == target.getClass()) { return; } // New t...
[ "@", "Override", "public", "void", "setTarget", "(", "Object", "target", ")", "{", "if", "(", "mTarget", "!=", "target", ")", "{", "final", "Object", "oldTarget", "=", "mTarget", ";", "mTarget", "=", "target", ";", "if", "(", "oldTarget", "!=", "null", ...
Sets the target object whose property will be animated by this animation @param target The object being animated
[ "Sets", "the", "target", "object", "whose", "property", "will", "be", "animated", "by", "this", "animation" ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/ObjectAnimator.java#L446-L457
112,292
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/ValueAnimator.java
ValueAnimator.ofPropertyValuesHolder
public static ValueAnimator ofPropertyValuesHolder(PropertyValuesHolder... values) { ValueAnimator anim = new ValueAnimator(); anim.setValues(values); return anim; }
java
public static ValueAnimator ofPropertyValuesHolder(PropertyValuesHolder... values) { ValueAnimator anim = new ValueAnimator(); anim.setValues(values); return anim; }
[ "public", "static", "ValueAnimator", "ofPropertyValuesHolder", "(", "PropertyValuesHolder", "...", "values", ")", "{", "ValueAnimator", "anim", "=", "new", "ValueAnimator", "(", ")", ";", "anim", ".", "setValues", "(", "values", ")", ";", "return", "anim", ";", ...
Constructs and returns a ValueAnimator that animates between the values specified in the PropertyValuesHolder objects. @param values A set of PropertyValuesHolder objects whose values will be animated between over time. @return A ValueAnimator object that is set up to animate between the given values.
[ "Constructs", "and", "returns", "a", "ValueAnimator", "that", "animates", "between", "the", "values", "specified", "in", "the", "PropertyValuesHolder", "objects", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/ValueAnimator.java#L328-L332
112,293
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/ValueAnimator.java
ValueAnimator.addUpdateListener
public void addUpdateListener(AnimatorUpdateListener listener) { if (mUpdateListeners == null) { mUpdateListeners = new ArrayList<AnimatorUpdateListener>(); } mUpdateListeners.add(listener); }
java
public void addUpdateListener(AnimatorUpdateListener listener) { if (mUpdateListeners == null) { mUpdateListeners = new ArrayList<AnimatorUpdateListener>(); } mUpdateListeners.add(listener); }
[ "public", "void", "addUpdateListener", "(", "AnimatorUpdateListener", "listener", ")", "{", "if", "(", "mUpdateListeners", "==", "null", ")", "{", "mUpdateListeners", "=", "new", "ArrayList", "<", "AnimatorUpdateListener", ">", "(", ")", ";", "}", "mUpdateListener...
Adds a listener to the set of listeners that are sent update events through the life of an animation. This method is called on all listeners for every frame of the animation, after the values for the animation have been calculated. @param listener the listener to be added to the current set of listeners for this anima...
[ "Adds", "a", "listener", "to", "the", "set", "of", "listeners", "that", "are", "sent", "update", "events", "through", "the", "life", "of", "an", "animation", ".", "This", "method", "is", "called", "on", "all", "listeners", "for", "every", "frame", "of", ...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/ValueAnimator.java#L819-L824
112,294
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/ValueAnimator.java
ValueAnimator.removeUpdateListener
public void removeUpdateListener(AnimatorUpdateListener listener) { if (mUpdateListeners == null) { return; } mUpdateListeners.remove(listener); if (mUpdateListeners.size() == 0) { mUpdateListeners = null; } }
java
public void removeUpdateListener(AnimatorUpdateListener listener) { if (mUpdateListeners == null) { return; } mUpdateListeners.remove(listener); if (mUpdateListeners.size() == 0) { mUpdateListeners = null; } }
[ "public", "void", "removeUpdateListener", "(", "AnimatorUpdateListener", "listener", ")", "{", "if", "(", "mUpdateListeners", "==", "null", ")", "{", "return", ";", "}", "mUpdateListeners", ".", "remove", "(", "listener", ")", ";", "if", "(", "mUpdateListeners",...
Removes a listener from the set listening to frame updates for this animation. @param listener the listener to be removed from the current set of update listeners for this animation.
[ "Removes", "a", "listener", "from", "the", "set", "listening", "to", "frame", "updates", "for", "this", "animation", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/ValueAnimator.java#L843-L851
112,295
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/ValueAnimator.java
ValueAnimator.reverse
public void reverse() { mPlayingBackwards = !mPlayingBackwards; if (mPlayingState == RUNNING) { long currentTime = AnimationUtils.currentAnimationTimeMillis(); long currentPlayTime = currentTime - mStartTime; long timeLeft = mDuration - currentPlayTime; mS...
java
public void reverse() { mPlayingBackwards = !mPlayingBackwards; if (mPlayingState == RUNNING) { long currentTime = AnimationUtils.currentAnimationTimeMillis(); long currentPlayTime = currentTime - mStartTime; long timeLeft = mDuration - currentPlayTime; mS...
[ "public", "void", "reverse", "(", ")", "{", "mPlayingBackwards", "=", "!", "mPlayingBackwards", ";", "if", "(", "mPlayingState", "==", "RUNNING", ")", "{", "long", "currentTime", "=", "AnimationUtils", ".", "currentAnimationTimeMillis", "(", ")", ";", "long", ...
Plays the ValueAnimator in reverse. If the animation is already running, it will stop itself and play backwards from the point reached when reverse was called. If the animation is not currently running, then it will start from the end and play backwards. This behavior is only set for the current animation; future playi...
[ "Plays", "the", "ValueAnimator", "in", "reverse", ".", "If", "the", "animation", "is", "already", "running", "it", "will", "stop", "itself", "and", "play", "backwards", "from", "the", "point", "reached", "when", "reverse", "was", "called", ".", "If", "the", ...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/ValueAnimator.java#L1008-L1018
112,296
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/ValueAnimator.java
ValueAnimator.endAnimation
private void endAnimation() { sAnimations.get().remove(this); sPendingAnimations.get().remove(this); sDelayedAnims.get().remove(this); mPlayingState = STOPPED; if (mRunning && mListeners != null) { ArrayList<AnimatorListener> tmpListeners = (ArrayL...
java
private void endAnimation() { sAnimations.get().remove(this); sPendingAnimations.get().remove(this); sDelayedAnims.get().remove(this); mPlayingState = STOPPED; if (mRunning && mListeners != null) { ArrayList<AnimatorListener> tmpListeners = (ArrayL...
[ "private", "void", "endAnimation", "(", ")", "{", "sAnimations", ".", "get", "(", ")", ".", "remove", "(", "this", ")", ";", "sPendingAnimations", ".", "get", "(", ")", ".", "remove", "(", "this", ")", ";", "sDelayedAnims", ".", "get", "(", ")", ".",...
Called internally to end an animation by removing it from the animations list. Must be called on the UI thread.
[ "Called", "internally", "to", "end", "an", "animation", "by", "removing", "it", "from", "the", "animations", "list", ".", "Must", "be", "called", "on", "the", "UI", "thread", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/ValueAnimator.java#L1024-L1039
112,297
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/ValueAnimator.java
ValueAnimator.startAnimation
private void startAnimation() { initAnimation(); sAnimations.get().add(this); if (mStartDelay > 0 && mListeners != null) { // Listeners were already notified in start() if startDelay is 0; this is // just for delayed animations ArrayList<AnimatorListener> tmpL...
java
private void startAnimation() { initAnimation(); sAnimations.get().add(this); if (mStartDelay > 0 && mListeners != null) { // Listeners were already notified in start() if startDelay is 0; this is // just for delayed animations ArrayList<AnimatorListener> tmpL...
[ "private", "void", "startAnimation", "(", ")", "{", "initAnimation", "(", ")", ";", "sAnimations", ".", "get", "(", ")", ".", "add", "(", "this", ")", ";", "if", "(", "mStartDelay", ">", "0", "&&", "mListeners", "!=", "null", ")", "{", "// Listeners we...
Called internally to start an animation by adding it to the active animations list. Must be called on the UI thread.
[ "Called", "internally", "to", "start", "an", "animation", "by", "adding", "it", "to", "the", "active", "animations", "list", ".", "Must", "be", "called", "on", "the", "UI", "thread", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/ValueAnimator.java#L1045-L1058
112,298
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/ValueAnimator.java
ValueAnimator.clearAllAnimations
public static void clearAllAnimations() { sAnimations.get().clear(); sPendingAnimations.get().clear(); sDelayedAnims.get().clear(); }
java
public static void clearAllAnimations() { sAnimations.get().clear(); sPendingAnimations.get().clear(); sDelayedAnims.get().clear(); }
[ "public", "static", "void", "clearAllAnimations", "(", ")", "{", "sAnimations", ".", "get", "(", ")", ".", "clear", "(", ")", ";", "sPendingAnimations", ".", "get", "(", ")", ".", "clear", "(", ")", ";", "sDelayedAnims", ".", "get", "(", ")", ".", "c...
Clear all animations on this thread, without canceling or ending them. This should be used with caution. @hide
[ "Clear", "all", "animations", "on", "this", "thread", "without", "canceling", "or", "ending", "them", ".", "This", "should", "be", "used", "with", "caution", "." ]
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/ValueAnimator.java#L1248-L1252
112,299
JakeWharton/NineOldAndroids
library/src/com/nineoldandroids/animation/AnimatorSet.java
AnimatorSet.getChildAnimations
public ArrayList<Animator> getChildAnimations() { ArrayList<Animator> childList = new ArrayList<Animator>(); for (Node node : mNodes) { childList.add(node.animation); } return childList; }
java
public ArrayList<Animator> getChildAnimations() { ArrayList<Animator> childList = new ArrayList<Animator>(); for (Node node : mNodes) { childList.add(node.animation); } return childList; }
[ "public", "ArrayList", "<", "Animator", ">", "getChildAnimations", "(", ")", "{", "ArrayList", "<", "Animator", ">", "childList", "=", "new", "ArrayList", "<", "Animator", ">", "(", ")", ";", "for", "(", "Node", "node", ":", "mNodes", ")", "{", "childLis...
Returns the current list of child Animator objects controlled by this AnimatorSet. This is a copy of the internal list; modifications to the returned list will not affect the AnimatorSet, although changes to the underlying Animator objects will affect those objects being managed by the AnimatorSet. @return ArrayList<A...
[ "Returns", "the", "current", "list", "of", "child", "Animator", "objects", "controlled", "by", "this", "AnimatorSet", ".", "This", "is", "a", "copy", "of", "the", "internal", "list", ";", "modifications", "to", "the", "returned", "list", "will", "not", "affe...
d582f0ec8e79013e9fa96c07986160b52e662e63
https://github.com/JakeWharton/NineOldAndroids/blob/d582f0ec8e79013e9fa96c07986160b52e662e63/library/src/com/nineoldandroids/animation/AnimatorSet.java#L199-L205