Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

142
Views
Calculate Paint Line length

I had a question, I just can't find the answer. There is an onTouchEvent(event: MotionEvent) and inside I draw a line using Paint. I can't figure out how to get the length of the paint line and find out the refraction, or rather how many degrees like on a picture.

enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Take a look at PathMeasure to get length/points along an arc. Here is an example of an approach you could use.

As for the degrees of an arc, you will need to decide which points to use to produce the tangents you want to compute the value of the angle - different tangents may produce different values.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!