Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 2 | 0.973 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 165 | Closure/closure/goog/math/math.js |
2 | 2 | 176 | Closure/closure/goog/math/math.js |
| ||||
/** * For a given angle and radius, finds the X portion of the offset. * @param {number} degrees Angle in degrees (zero points in +X direction). * @param {number} radius Radius. * @return {number} The x-distance for the angle and radius. */ goog.math.angleDx= function (degrees, radius){ return radius* Math.cos(goog.math.toRadians(degrees)); } ; |
| ||||
/** * For a given angle and radius, finds the Y portion of the offset. * @param {number} degrees Angle in degrees (zero points in +X direction). * @param {number} radius Radius. * @return {number} The y-distance for the angle and radius. */ goog.math.angleDy= function (degrees, radius){ return radius* Math.sin(goog.math.toRadians(degrees)); } ; |
| |||
/** * For a given angle and radius, finds the Y portion of the offset. * @param {number} degrees Angle in degrees (zero points in +X direction). * @param {number} radius Radius. * @return {number} The y-distance for the angle and radius. */ /** * For a given angle and radius, finds the X portion of the offset. * @param {number} degrees Angle in degrees (zero points in +X direction). * @param {number} radius Radius. * @return {number} The x-distance for the angle and radius. */ goog.math. [[#variable63185d00]]= function (degrees,radius) { return radius*Math. [[#variable63185ca0]](goog.math.toRadians(degrees)); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#63185d00]] | angleDy |
1 | 2 | [[#63185d00]] | angleDx |
2 | 1 | [[#63185ca0]] | sin |
2 | 2 | [[#63185ca0]] | cos |