Finding the length of a path

hey,
i'm using cs3 and i have a few simple paths (curves) and i'd like to know the length of these curves but i can't seem to find an option, or whatever, for that.
thanks

You mean the length as you travel along the curves?
Can't be done I'm afraid, at least not very accurately.
If it's really important you could try arranging a whole lot of little squares along the path so that they touch each other and then counting them. But the result won't be accurate unless the squares are very small.
However, if you know how the curves are constructed geometrically you can sometimes calculate their lengths.
For example if the curve is an arc of a circle and you know the angle it subtends as a proportion of 360 degrees then it's fairly easy to use pi to find the length of it.
Circumference of a circle = pi x diameter.
"As every skoolboy kno" (nigel molesworth)
Ellipses are more of a bother and I don't know the formulas for sinus curves, parabolas and that sort of thing.

Similar Messages

  • Finding the multiple JRE installed path in Linux OS

    for my requirement on finding the JRE installaiton folder on windows and Linux machines , I can able to get it in windows but I am facing problem in getting the jre installed path from Linux machine. I am using Debian etch OS. Can anyone help me to find the installed path of JRE in Linux machine using a Java program. I need to find the multuiple JRE installed paths, i.e. my java program should find all the JRE installed paths and versions of the same.
    Thanks in advance.
    Edited by: VijayForumScreen on Jul 29, 2008 5:46 AM

    As per the terminal prompt its ok...but i need the java concept to retrieve the versions and installed paths of the all JRE.
    e.g;For current JRE we can get by,
    System.out.println(System.getProperty("java.version"));
    System.out.println(System.getProperty("java.home"));
    Output:
    1.5.0_10
    /usr/lib/jvm/java-1.5.0-sun-1.5.0.10/jre
    If i installed 1.3 and 1.4 also.,
    How can i get installed paths and versions for all three 1.3,1.4 and 1.5 JRE's

  • How to find the length of the resultset

    how to find the length of the resultset

    (Doing a select count as somebody suggested is nota
    good solution, as the count can change betweenyour
    count query and your real query.)And the number of rows can't change between getting
    the last one and doing the actual work?I don't think so. Once you've got the ResultSet, I don't think it will change under you, unless you explicitly set it to SCROLL_SENSITIVE.
    I could be mistaken though.

  • How to Find the length of Infosource?/

    Hi BW Guru's,
    How to Find the length of Infosource?
    Thanks
    Bhima Chandra Sekhar G

    Hi Bhima,
    You can look up the transfer structure (extract structure) in table ROOSOURCE in the active version of the DataSource and determine its size via SE11 (DDIC) -> Utilities -> Runtime object -> Table length.
    Hope it helps!
    Bye,
    ROberto

  • Find the length of a string in pixels

    Hello all,
    Wondering if there's a way in PowerShell to find the length of a given string in pixels?

    That would depend on the font used to draw it, including size, bold / italic, etc.  Assuming you know those things, there's a TextRenderer.MeasureText method in the Windows Forms library:
    $string = 'This is my string. There are many like it, but this one is mine.'
    $font = New-Object System.Drawing.Font('Arial', 12, [System.Drawing.FontStyle]'Bold, Italic')
    $size = [System.Windows.Forms.TextRenderer]::MeasureText($string, $font)
    $size.Width

  • How do i find the length of a string??

    trying to use the substring, I know the beginIndex (in my case 10), but the string will vary in size and so i need to find the last character and set it as the endIndex, how do i do this?
    public String substring(int beginIndex,
    int endIndex)Returns a new string that is a substring of this string. The substring begins at the specified beginIndex and extends to the character at index endIndex - 1. Thus the length of the substring is endIndex-beginIndex.
    Examples:
    "hamburger".substring(4, 8) returns "urge"
    "smiles".substring(1, 5) returns "mile"
    Parameters:
    beginIndex - the beginning index, inclusive.
    endIndex - the ending index, exclusive.
    Returns:
    the specified substring.

    Hi
    To substring the string where u know the begin index and want to extract till the end use the following function from the String class of the java.lang package
    String substring(int beginindex);
    String test = "Hello";
    String xx = test.substring(1);
    The Value stored in xx will be ello
    This is in case u need till the end of the String
    If wanna skip the last character u can
    use
    String substring(int beginindex,int endindex);
    String test = "Hello";
    String xx = test.substring(1,test.length()-1);
    The Value stored in xx will be ell

  • Chnage colum from CLOB to Varchar2 and find the length of CLOB

    Hi,
    I have got tables contain CLOB fields. I want to converter them to varchar2? Is the a way to do it? how can I find the max of length the data in CLOB fields.
    Thanks in advance!!
    Michael

    Hi All,
    Thanks you for your useful information. What I need is to change the colum data type (definaition itself)from CLOB to Varchar2, not just to display the values in CLOB field into varchar2. I have tried to change the date type from COLB to varchar2 in TOAD and got ORA_22859: invaliad modification of columns.
    Any suggestions?
    Many Thanks
    Michael

  • How to find the OBIEE report  (Catelogue) path from BI enabled excel sheet

    Dear All,
    I have an excel sheet where the data is coming from BI server. How can I find the BI report name and path from the excel sheet.
    Regards
    Mustafa

    Sorry Friends,
    May be I am not conveying the message properly.
    Let me try to do it again.
    I have an excel sheet which is created by somebody else and send me by mail.
    This excel sheet is having connectivity to the BI server and pulling data from BI.
    What I want to know is to get the BI report and view name from the excel sheet so that I can do some modification in the report.
    Please not the owner of the excel file is un-reachable.
    Let say I have uploaded the sample Excel in the following URL http://www.fileflyer.com/view/VSHtOA8.
    This excel file is pulling data from our BI Server
    Could anybody tell me the report path, name and view name from the excel file
    Regards
    Mustafa

  • Sql to find the length of the column in bytes

    Hi
    could some one help me in writing the sql to find the actual size of the column in bytes.
    thanks in advance

    790072 wrote:
    could some one help me in writing the sql to find the actual size of the column in bytes.If you mean you want to find out column value internal representation in bytes, use VSIZE.
    SY.

  • Finding the length of a string

    hi im pretty new to all this,
    I am adding a part to my very basic program where the user can type "y" or "n" after they are being asked if they want to continue, I have been able to do this ok but im trying to make the program as air-tight as possible and i'm having troubble with the error checking.
    I have told the program what to do next based on the first character the user has typed (character 0), I would like my prorgam to prevent continuation if more than one character was entered into the string. At present it still recognises ydr (example) as a valid entry, is there anyway i can detect if there is more than one character in the sting? by doing so i'll be able to throw back an error to the user.
    do
      System.out.println("Would you like to continue (y/n)");
      System.out.println("");
      tmpans = scan.nextLine();
          if (tmpans.length > 1)
          //i know the above method of detecting the length dosn't work with strings, is there an alternative?
            exchar = true;
            System.out.println("You have entered too many characters");
          else
            exchar = false;
          while (exchar);
          if (tmpans.charAt(0) == 'y')
    ... etc

    String.getLength()Errr... String.length() ?Ya right. Whatever. lol
    It's still early in the day for me

  • Where can I find the length of my playlist?

    I thought it was supposed to tell me the length of my playlist at the bottom of iTunes so I knew how many songs I could burn to a CD. I see nothing but the ministore below my playlist.

    Hi, Ankaara.
    Look beneath the MiniStore - just above the XP Taskbar assuming you've left the taskbar in its default location along the botton edge of your computer desktop.

  • Find the length of a String, without using any String API

    Hi All,
    I need to write an method which will accept String obj as an argument and will return its length, but method should not have any String API.
    Please help

    Simratpal wrote:
    Hi All,
    I need to write an method which will accept String obj as an argument and will return its length, but method should not have any String API.
    Please helpWell I have strongly argued against doing this, (it seems like a pointless exercise), and I have even stated that it cannot be done, even Reflection at some level will use a String method. I have not bothered to dissect wether the same is true with JNI. However, if we take the statement of the original problem exactly as stated, particularly the
    but method should not have any String API.i.e. we don't care if a String API is used 'under the covers', just so long as there is no direct usage in the new method that is written, then the answer is trivially easy:
    public class Main
        public static void main(String args[])
            Main worker = new Main();
            String str = "123456789";
            int len = worker.strLenUsingNoExplicitStringClassMethod(str);
            System.out.println("Length of string \""+str+"\""+" is "+len);
        public int strLenUsingNoExplicitStringClassMethod(String string)
            StringBuilder sb = new StringBuilder(string);
            return sb.length();
    }

  • How to find programatically the length of a private key?

    Hello,
    I generate a keystore and a private key in it with the command:
    keytool -genkey -v -alias myPrivKey -keyalg RSA -keysize 4096I then can access the private key with the following code:
    KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
    InputStream is = new FileInputStream("/path/to/keystore", keyStorePassword);
    ks.load(is);
    KeyStore.PasswordProtection protParam = new KeyStore.PasswordProtection(privKeyPassword);
    KeyStore.PrivateKeyEntry privKeyEntry = (KeyStore.PrivateKeyEntry)ks.getEntry("myPrivKey", protParam);
    PrivateKey privKey = privKeyEntry.getPrivateKey();How can I get the length of the private key using the PrivateKey privKey object in my code? In this case I know it is 4096, but how can I find the lengths of arbitrary rsa private keys?
    Thank you very much for your answers in advance.
    Regards
    Rambius

    RSAPrivateKey privKey = (RSAPrivateKey)privKeyEntry.getPrivateKey();
    BigInteger modulus = privKey.getModulus();
    int length = modulus.bitLength(); // See the Javadoc for details

  • How to find the total length of the string drawed in a rect?

    Hello Everybody,
    I am drawing a string in on one rect using drawInRect method. This drawInRect method gives us a return value as size of the rect. I need length of the string that is did draw in that rect, but didn't find any api to do this.
    Can anyone tell me , how find the length of the string which we did draw in rect?
    Any help regarding this issue , is highly appreciable.
    Thanks,
    Pandit

    Hi Adreas,
    First of all, very thanks for the response.
    Actually , I am looking for other thing. Using drawInRect method I am drawing contentString in self.rect like below.
    //code
    [contentString drawInRect:self.rect withFont:[UIFont fontWithName:@"Verdana" size:14.0] lineBreakMode:UILineBreakModeWordWrap alignment:UITextAlignmentLeft];
    //End
    My contentString is much larger string, so I am not able to draw it in rect(length: 320.0 height: 460.0) completely. My rect is showing only a part of a contentString. So I need to get that part of string which did draw in the rect, so that I can process my contentString to get the remaining string to draw it a next rect.
    The above code statement is returning me the CGSIZE , it is giving the size of the rect but not giving any information of the string which get draw in that rect.Do you have any idea how to do this?
    Any information on this is highly appreciable.
    Thanks,
    Pandit

  • Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
    Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
    http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
    It might also help if you post the exact error message, including the path to the flv file.
    '''Note:'''
    Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information.

Maybe you are looking for

  • Can't get actionscript to work

    I'm very new to flash and I've watched many tutorials and I'm pretty  much doing exactly as I've seen others doing, but mine won't work.  I'm  trying to build an application that serves as a header for a website.  I  want there to be animations by th

  • I want to clear my browser search history

    I am an old guy who has a new toy (Ipad 4)  I need to know how to clear my browser search history  whenever i go to google to enter a new search, as soon as I put the first letter in the bar, all that I have searched before pops up.  It is anoying an

  • Remove column name in generated CSV file through ODI

    Hi, I want to remove the column names in CSV file which I am creating through database. I have tried putting "heading to zero in the the datastore", which I created for csv file, but it is not working. Please assist. Thanks, Sudeep Naik

  • Integrate Adobe AIR with other desktop application

    Hi Experts, I am new to adobe flex. I am developing a desktop application with adobe AIR. Please guide me, how to integrate other desktop applications with AIR application in windows.

  • How to make a realistic rope segment

    This might be quite simple. I am trying to make a rope segment that would look like the rope in ( http://www.letsmoondance.nl/  and  http://www.youtube.com/watch?v=8rgXxNnMaRI&feature=related ) when joined. I don't know much photoshop, can someone pl