Posts

Showing posts from February 25, 2019

Nebular stepper Issue after completed

Image
0 I need help in nebular stepper, as we know that when the any step completed then the "checkmark" icon displayed but my use case is different I need the number will remain but color will change as same as icon (i.e. # ffffff). I am not able to override the scss for this. Please advise how can I override. Please find the screenshots of expected and current behavior: <nb-card class="card"> <nb-card-body> <nb-stepper orientation="horizontal"> <nb-step [label]="labelOne"> <ng-template #labelOne></ng-template> <h3>Working on Step 1</h3> </nb-step> <nb-step [label]="labelTwo"> <ng-template #labelTwo></ng-template>

Find a point Q1 on L1 and a point Q2 on L2 so that d(Q1,Q2) = d

Image
0 $begingroup$ Let L1 be the line passing through the point P1 = (−2, 3, 1) with direction vector →d = <−2, −1, −2>, and let L2 be the line passing through the point P2 = (4, 4, −4) with the same direction vector. Find the shortest distance d between these two lines, and find a point Q1 on L1 and a point Q2 on L2 so that d ( Q1 , Q2 ) = d . What I've solved for so far: L1: <-2,3,1> + t<-2,-1,2> L2: <4,4-4> + u<-2,-1,2> Consider a point (-2,3,1) and a point on L2 which is <4-2u, 4-u, -4-2u> Distance between the points is: d $^2$ = (-2u+6) $^2$ + (-u+1) $^2$ + (-2u-5) $^2$ I then differentiated both sides to get: (4u-12) + (u-1) + (4u+10) = 0 u = $frac13$ Shortest distance between the lines is then: d $^2$ = (-2( $frac13$ )+6) $^2$ + (-(