ADD week 5
This commit is contained in:
		| @@ -0,0 +1,24 @@ | ||||
| package com.google.android.material.transition; | ||||
|  | ||||
| import android.graphics.Path; | ||||
| import android.graphics.PointF; | ||||
| import androidx.transition.PathMotion; | ||||
|  | ||||
| /* loaded from: classes.dex */ | ||||
| public final class MaterialArcMotion extends PathMotion { | ||||
|     @Override // androidx.transition.PathMotion | ||||
|     public Path getPath(float f, float f2, float f3, float f4) { | ||||
|         Path path = new Path(); | ||||
|         path.moveTo(f, f2); | ||||
|         PointF controlPoint = getControlPoint(f, f2, f3, f4); | ||||
|         path.quadTo(controlPoint.x, controlPoint.y, f3, f4); | ||||
|         return path; | ||||
|     } | ||||
|  | ||||
|     private static PointF getControlPoint(float f, float f2, float f3, float f4) { | ||||
|         if (f2 > f4) { | ||||
|             return new PointF(f3, f2); | ||||
|         } | ||||
|         return new PointF(f, f4); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user