MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / FApex

Method FApex

Source/PCGExtendedToolkit/Private/Geometry/PCGExGeo.cpp:383–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected