| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 2 | 2 | 1 | 0.976 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 133 | Closure/closure/goog/math/coordinate.js |
| 2 | 2 | 238 | Closure/closure/goog/math/vec2.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);
} ;
|
| ||||
/**
* 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);
} ;
|
| |||
/**
* 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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#62f62580]] | Coordinate |
| 1 | 2 | [[#62f62580]] | Vec2 |