Struggling with explaining this small part of code (C#)

Watch
Agent456
Badges: 16
Rep:
?
#1
Report Thread starter 1 month ago
#1
int Clampedx = Clamp(x);
int Clampedy = Clamp(y);
int Clampedz = Clamp(z);
return new Data(Clampedx, ClampedY, ClampedZ)

someone help me explain what this code does??

thanks.
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Do you have the space and resources you need to succeed in home learning?

Yes I have everything I need (207)
57.66%
I don't have everything I need (152)
42.34%

Watched Threads

View All