| 381 | } |
| 382 | |
| 383 | FApex::FApex(const FVector& Start, const FVector& End, const FVector& InApex) |
| 384 | { |
| 385 | Direction = (Start - End).GetSafeNormal(); |
| 386 | Anchor = FMath::ClosestPointOnSegment(InApex, Start, End); |
| 387 | |
| 388 | const double DistToStart = FVector::Dist(Start, Anchor); |
| 389 | const double DistToEnd = FVector::Dist(End, Anchor); |
| 390 | TowardStart = Direction * (DistToStart * -1); |
| 391 | TowardEnd = Direction * DistToEnd; |
| 392 | Alpha = DistToStart / (DistToStart + DistToEnd); |
| 393 | } |
| 394 | |
| 395 | void FApex::Scale(const double InScale) |
| 396 | { |
nothing calls this directly
no outgoing calls
no test coverage detected