This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import numpy | |
delta = .01 | |
roadLengthValues = {} | |
def calculateRoadLengthValueFunction(length): | |
hypotenuse = math.sqrt((length * length) + (4*4)) | |
roadLength = (4 * hypotenuse) + (8 - (2*length)) | |
return roadLength |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private boolean cloneMediaUsingMuxer(String srcMedia, String dstMediaPath, | |
int expectedTrackCount, int degrees) throws IOException { | |
// Set up MediaExtractor to read from the source. | |
//AssetFileDescriptor srcFd = mResources.openRawResourceFd(srcMedia); | |
MediaExtractor extractor = new MediaExtractor(); | |
extractor.setDataSource(srcMedia); | |
int trackCount = extractor.getTrackCount(); | |
//assertEquals("wrong number of tracks", expectedTrackCount, trackCount); | |
// Set up MediaMuxer for the destination. | |
MediaMuxer muxer; |