Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
Loading...
Searching...
No Matches
BPFunLib_Trigonometry.h
1/*
2 * Copyright (c) 2026 Grzegorz Krug.
3 * All Rights Reserved.
4 */
5
6#pragma once
7
8
10
11
12#include "BPFunLib_Trigonometry.generated.h"
13
14
18UCLASS(BlueprintType)
20 GENERATED_BODY()
21
22
23public:
33 UFUNCTION(BlueprintCallable, Category = "YasiuMath|Trigonometry")
34 static void SpreadPointsOnTangentByXY( TArray<FVector2D>& out, const double X, const double Y, const double spreadDistance );
35
46 UFUNCTION(BlueprintCallable, Category = "YasiuMath|Trigonometry")
47 static void SpreadPointsOnTangentByAngleRadius( TArray<FVector2D>& out, double angle, double radius, double spreadDistance );
48
49
63 UFUNCTION(BlueprintCallable, Category = "YasiuMath|Trigonometry")
64 double FindMinimalRadiusForIntersectingTangentsOnArc( double alfa, double beta, double symmetricWidth );
65
83 UFUNCTION(BlueprintCallable, Category = "YasiuMath|Trigonometry")
84 FVector2D FindMinimalRadiusForIntersectingTangentsOnArcAsymmetric( double alfa, double beta, double widthA, double widthB );
85};
BP Function library used with trigonometry.
Definition BPFunLib_Trigonometry.h:19
double FindMinimalRadiusForIntersectingTangentsOnArc(double alfa, double beta, double symmetricWidth)
Find radius of circle for both tangent lines that intersect.
FVector2D FindMinimalRadiusForIntersectingTangentsOnArcAsymmetric(double alfa, double beta, double widthA, double widthB)
Find radius of circle for both tangent line that intersect.
static void SpreadPointsOnTangentByXY(TArray< FVector2D > &out, const double X, const double Y, const double spreadDistance)
Spread points on tangent line to arc located by XY offset from arc center point 0,...
static void SpreadPointsOnTangentByAngleRadius(TArray< FVector2D > &out, double angle, double radius, double spreadDistance)
Spread points on tangent line to arc located by angle and radius of given arc.
BP Function placeholder to group libraries in documentation.
Definition YasiuMathBPLibrary.h:29