-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove prototype functions #1564
Conversation
…ngle, BoundingSphere, Plane, Ray and Spherical.
@@ -24,6 +24,19 @@ Beta Releases | |||
### b26 - 2014-03-03 | |||
|
|||
* Breaking changes: | |||
* Removed the following prototype functions. (Use 'static' versions of these functions instead): | |||
* `AxisAlignedBoundingBox.prototype` | |||
* `clone`, `equals` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we are keeping clone
and equals
prototype functions like, for example, on Cartesian2
.
Which test? I don't expect we'll need these since we no longer do view frustum culling polymorphically because it was a pain to avoid allocating new objects every frame. |
Conflicts: Specs/Scene/PolylineCollectionSpec.js
I initially changed line 50 in |
Ah, OK. |
* `Ray` | ||
* `getPoint` | ||
* `Spherical` | ||
* `normalize`, `equalsEpsilon`, `toString` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going off of Cartesian2, shouldn't we leave the prototype versions of equalsEpsilon
and toString
?
Just those questions. Tests, Sandcastle, and JSHint are good. |
Conflicts: Specs/Core/BoundingSphereSpec.js
@pjcozzi anything else? |
No, looks good. |
#1082
Removed prototype functions from:
AxisAlignedBoundingBox, BoundingRectangle, BoundingSphere, Plane, Ray, Spherical
I left in
AxisAlignedBoundingBox.prototype.intersect
,BoundingRectangle.prototype.intersect
andBoundingSphere.prototype.intersect
because one of theCullingVolume
tests made it look like it was necessary.