Loading...
Linear interpolation of Vectors C#
Save Copy
Desmos Logo
Log In
Sign Up
"x" Subscript, 1 , Baseline
x
1
"y" Subscript, 1 , Baseline
y
1
"a" . "x"
a
.
x
"a" . "y"
a
.
y
r1c3:
"b" . "x"
b
.
x
"b" . "y"
b
.
y
r2c3:
r3c3:
12
Hidden Label: left bracket, "a" , "b" , right bracket
a
,
b
Label
equals
=
left parenthesis, negative 1.5 , negative 0.5 , right parenthesis
−
1
.
5
,
−
0
.
5
left parenthesis, 1.2 5 , 0.8 , right parenthesis
1
.
2
5
,
0
.
8
13
Expression 14: "y" equals "a" plus "x" * ( "b" minus "a" ) left brace, 0 less than "x" less than 1 , right brace
y
=
a
+
x
*
(
b
−
a
)
0
<
x
<
1
14
float t = ${t}f; left parenthesis, negative 2.5 , 1.0 5 , right parenthesis
−
2
.
5
,
1
.
0
5
Label:
15
Hidden t = ${t} left parenthesis, negative 1.4 plus left parenthesis, "t" , right parenthesis , 1.0 5 , right parenthesis
−
1
.
4
+
t
,
1
.
0
5
Label:
equals
=
left parenthesis, negative 0.6 5 , 1.0 5 , right parenthesis
−
0
.
6
5
,
1
.
0
5
16
Expression 17: "y" equals 1.0 5 left brace, negative 1.6 less than "x" less than negative 0.2 , right brace
y
=
1
.
0
5
−
1
.
6
<
x
<
−
0
.
2
17
Vector2 a = new Vector2 (${x_a}f, ${y_a}f); left parenthesis, negative 2.5 , 1.4 5 , right parenthesis
−
2
.
5
,
1
.
4
5
Label:
18
Vector2 b = new Vector2 (${x_b}f, ${y_b}f); left parenthesis, negative 2.5 , 1.2 5 , right parenthesis
−
2
.
5
,
1
.
2
5
Label:
19
Vector2 result = Vector2.Lerp(a, b, t); left parenthesis, 0.2 , negative 0.6 5 , right parenthesis
0
.
2
,
−
0
.
6
5
Label:
20
// result = (${r_x},${r_y}) left parenthesis, 0.2 , negative 0.8 5 , right parenthesis
0
.
2
,
−
0
.
8
5
Label:
21
Expression 22: "r" Subscript, "x" , Baseline equals "r" Subscript, "e" , Baseline . "x"
r
x
=
r
e
.
x
equals
=
0.5 6 2 5
0
.
5
6
2
5
22
Expression 23: "r" Subscript, "y" , Baseline equals "r" Subscript, "e" , Baseline . "y"
r
y
=
r
e
.
y
equals
=
0.4 7 5
0
.
4
7
5
23
24
powered by
powered by
a = (-1.5, -0.5)
b = (1.25, 0.8)
float t = 0.75f;
Vector2 a = new Vector2 (-1.5f, -0.5f);
Vector2 b = new Vector2 (1.25f, 0.8f);
Vector2 result = Vector2.Lerp(a, b, t);
// result = (0.5625,0.475)
"x"
x
"y"
y
"a" squared
a
2
"a" Superscript, "b" , Baseline
a
b
7
7
8
8
9
9
over
÷
functions
(
(
)
)
less than
<
greater than
>
4
4
5
5
6
6
times
×
| "a" |
|
a
|
,
,
less than or equal to
≤
greater than or equal to
≥
1
1
2
2
3
3
negative
−
A B C
StartRoot, , EndRoot
pi
π
0
0
.
.
equals
=
positive
+
Log In
or
Sign Up
to save your graphs!
New Blank Graph
Examples
Lines: Slope Intercept Form
example
Lines: Point Slope Form
example
Lines: Two Point Form
example
Parabolas: Standard Form
example
Parabolas: Vertex Form
example
Parabolas: Standard Form + Tangent
example
Trigonometry: Period and Amplitude
example
Trigonometry: Phase
example
Trigonometry: Wave Interference
example
Trigonometry: Unit Circle
example
Conic Sections: Circle
example
Conic Sections: Parabola and Focus
example
Conic Sections: Ellipse with Foci
example
Conic Sections: Hyperbola
example
Polar: Rose
example
Polar: Logarithmic Spiral
example
Polar: Limacon
example
Polar: Conic Sections
example
Parametric: Introduction
example
Parametric: Cycloid
example
Transformations: Translating a Function
example
Transformations: Scaling a Function
example
Transformations: Inverse of a Function
example
Statistics: Linear Regression
example
Statistics: Anscombe's Quartet
example
Statistics: 4th Order Polynomial
example
Lists: Family of sin Curves
example
Lists: Curve Stitching
example
Lists: Plotting a List of Points
example
Calculus: Derivatives
example
Calculus: Secant Line
example
Calculus: Tangent Line
example
Calculus: Taylor Expansion of sin(x)
example
Calculus: Integrals
example
Calculus: Integral with adjustable bounds
example
Calculus: Fundamental Theorem of Calculus
example
Terms of Service
|
Privacy Policy