Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.4.4] Maths operations are considered to result in a struct #27

Closed
Xymanek opened this issue Dec 24, 2019 · 0 comments
Closed

[0.4.4] Maths operations are considered to result in a struct #27

Xymanek opened this issue Dec 24, 2019 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Xymanek
Copy link

Xymanek commented Dec 24, 2019

static final simulated function float FPctByRange( float Value, float InMin, float InMax )
{
	return (Value - InMin) / (InMax - InMin);
}

image

static final simulated function int ClampRotAxisFromBase(int Current, int Center, int MaxDelta)
{
	local int DeltaFromCenter;

	DeltaFromCenter = NormalizeRotAxis(Current - Center);

image

Angle = Acos( FClamp( Dir.X, -1.f, 1.f ) );

image
image

@EliotVU EliotVU added the enhancement New feature or request label Nov 8, 2021
@EliotVU EliotVU added this to the 1.0 milestone Nov 8, 2021
@EliotVU EliotVU modified the milestones: 1.0, 0.6 Jan 26, 2023
@EliotVU EliotVU closed this as completed Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants