CloneSet1516


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2210.976ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12133
Closure/closure/goog/math/coordinate.js
22238
Closure/closure/goog/math/vec2.js
Clone Instance
1
Line Count
2
Source Line
133
Source File
Closure/closure/goog/math/coordinate.js

/**
 * Returns the difference between two coordinates as a new
 * goog.math.Coordinate.
 * @param {goog.math.Coordinate} a A Coordinate.
 * @param {goog.math.Coordinate} b A Coordinate.
 * @return {goog.math.Coordinate} A Coordinate representing the difference
 *     between {@code a} and {@code b}.
 */
goog.math.Coordinate.difference=  function (a, b){
  return new goog.math.Coordinate(a.x-  b.x, a.y-  b.y);
                                                 } ;


Clone Instance
2
Line Count
2
Source Line
238
Source File
Closure/closure/goog/math/vec2.js

/**
 * Returns the difference between two vectors as a new Vec2.
 * @param {!goog.math.Vec2} a The first vector.
 * @param {!goog.math.Vec2} b The second vector.
 * @return {!goog.math.Vec2} The difference vector.
 */
goog.math.Vec2.difference=  function (a, b){
  return new goog.math.Vec2(a.x-  b.x, a.y-  b.y);
                                           } ;


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * Returns the difference between two coordinates as a new
 * goog.math.Coordinate.
 * @param {goog.math.Coordinate} a A Coordinate.
 * @param {goog.math.Coordinate} b A Coordinate.
 * @return {goog.math.Coordinate} A Coordinate representing the difference
 *     between {@code a} and {@code b}.
 */
/**
 * Returns the difference between two vectors as a new Vec2.
 * @param {!goog.math.Vec2} a The first vector.
 * @param {!goog.math.Vec2} b The second vector.
 * @return {!goog.math.Vec2} The difference vector.
 */
goog.math. [[#variable62f62580]].difference= function (a,b)
                                             { return new goog.math. [[#variable62f62580]](a.x-b.x,a.y-b.y);
                                             } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62f62580]]
Coordinate 
12[[#62f62580]]
Vec2