Slick Forums

Discuss the Slick 2D Library
It is currently Thu Nov 14, 2019 6:52 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Dec 09, 2010 6:54 pm 
Offline
Oldbie
User avatar

Joined: Fri Jul 20, 2007 9:25 am
Posts: 410
Location: Croatia
Hello,

for transform various Shapes use
Code:
public void transform(float source[], int sourceOffset, float destination[], int destOffset, int numberOfPoints)

which uses safety so you can have same destination and source, but at a performance loss as noted by this comment
Code:
        //TODO performance can be improved by removing the safety to the destination array


Since simple Shape.transform() guarantees that it won't change existing shape but create a new one, this safety is now redundant and can be removed.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2011 1:59 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Resolved in SVN.

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group