Skip to content

Instantly share code, notes, and snippets.

@MrGoatsy
Created April 5, 2023 11:36
Show Gist options
  • Save MrGoatsy/65afd765b0f957c39e6d9ce22c6e2925 to your computer and use it in GitHub Desktop.
Save MrGoatsy/65afd765b0f957c39e6d9ce22c6e2925 to your computer and use it in GitHub Desktop.
Math:
LerpRotatorWithClampedAngle
GetRandomPointInTrapezoid
GetLineSegmentsIntersection
TriangleAreaFromVertices
IsPolygonConvex
GetPolygonPerimeter
GetPolygonLongestAndShortestSides
CalculateConvexPolygonInertiaTensor
GetBarycentricCoordinates
ProjectPointOntoPlane
Texture:
GetAverageTextureColor
GetAverageRenderTarget2DColor
Material:
CreateDynamicMaterialInstanceWithRandomScalars
General:
Intersect
GetActorsInRange
GetClosestActorOfClass
SortActorsByDistanceToPoint
IsPointInsidePolygon3D
RotateActorToFaceTarget
Spline:
GetSplineMidpoint
GetClosestPointOnSpline
GetTangentVectorAtPointOnSpline
Actor:
GetActorsWithTagInRange
GetClosestOverlappingActors
Mesh:
GetMeshSurfaceArea
Line:
GetClosestPointOnLineSegment
Vector:
CalculatePolygonCentroid
CalculateWeightedAverageOfVectors
CalculateSmoothNormals
CalculateTangentFromNormals
GenerateHemispherePointsUniform
GenerateFibonacciSpherePointsAsync
Ray Intersection:
RaySphereIntersection
RayCylinderIntersection
Statistics:
CalculateWeightedStandardDeviation
Circle:
FindClosestPointOnCircle
Matrix:
CalculateCovarianceMatrix
Transform:
LerpTransformWithSlerp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment