Skip to content

.getTotalLength()


Description

This function returns the current exponential totalLength value of an EasyEase Object.



Examples:

getTotalLength_01.pde
import easy.ease.*;

EasyEase curve = new EasyEase(this);

void setup() {
  size(600, 400);
  float totalLength = curve.getTotalLenght();
  // prints 1.0 to the console
  println(totalLength);
}

getTotalLength_02.pde
import easy.ease.*;

EasyEase curve = new EasyEase(this, 4.0, 2.0, 2.0, 0.0);

void setup() {
  size(600, 400);
  float totalLength = curve.getTotalLenght();
  // prints 2.0 to the console
  println(totalLength);
}


Syntax

myCurve.getTotalLength()


Return

float