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.981 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 149 | Closure/closure/goog/math/coordinate3.js |
2 | 2 | 293 | Closure/closure/goog/math/vec3.js |
| ||||
/** * Returns the difference between two coordinates as a new * goog.math.Coordinate3. * * @param {goog.math.Coordinate3} a A Coordinate3. * @param {goog.math.Coordinate3} b A Coordinate3. * @return {goog.math.Coordinate3} A Coordinate3 representing the difference * between {@code a} and {@code b}. */ goog.math.Coordinate3.difference= function (a, b){ return new goog.math.Coordinate3(a.x- b.x, a.y- b.y, a.z- b.z); } ; |
| ||||
/** * Returns the difference of two vectors as a new Vec3. * * @param {goog.math.Vec3} a The first vector. * @param {goog.math.Vec3} b The second vector. * @return {goog.math.Vec3} The difference vector. */ goog.math.Vec3.difference= function (a, b){ return new goog.math.Vec3(a.x- b.x, a.y- b.y, a.z- b.z); } ; |
| |||
/** * Returns the difference between two coordinates as a new * goog.math.Coordinate3. * * @param {goog.math.Coordinate3} a A Coordinate3. * @param {goog.math.Coordinate3} b A Coordinate3. * @return {goog.math.Coordinate3} A Coordinate3 representing the difference * between {@code a} and {@code b}. */ /** * Returns the difference of two vectors as a new Vec3. * * @param {goog.math.Vec3} a The first vector. * @param {goog.math.Vec3} b The second vector. * @return {goog.math.Vec3} The difference vector. */ goog.math. [[#variable399cd280]].difference= function (a,b) { return new goog.math. [[#variable399cd280]](a.x-b.x,a.y-b.y,a.z-b.z); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#399cd280]] | Coordinate3 |
1 | 2 | [[#399cd280]] | Vec3 |