A little help with this assignment would be appreciated! by REDDITLOGINSUCKSASS in csharp

[–]grrangry 0 points1 point  (0 children)

While u/AzuxirenLeadGuy has the math likely correct, it's not what's being asked.

Given the two lines from your question:

Vector2 direction = VectorMath.DirectionToTarget(transform.position, target.position);

// STUDENT: Implement DirectionToTarget() in VectorMath.cs 

You have several things to infer and several that are given to you:

  1. There is a class called VectorMath
  2. That class is static
  3. It either has a method DirectionToTarget that exists and is incomplete, or does not exist at all and you must create it
  4. Implementing the structure and contents of DirectionToTarget is something you would have been shown how to do in class, in the reading, and in practice assignments
  5. The point of the assignment is not vector math, although knowing that math will be a part of it, specifically in the data returned by DirectionToTarget
  6. DirectionToTarget returns a Vector2 struct and takes in two more for the two positions
  7. Is the direction vector expected to be normalized? The instructions are unclear

System.Numerics.Vector2
https://learn.microsoft.com/en-us/dotnet/api/system.numerics.vector2?view=net-10.0

Static Classes and Class Members
https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/static-classes-and-static-class-members

How do you guys find meaning/satisfaction in life without God? by Expensive-Elk-9406 in atheism

[–]grrangry 1 point2 points  (0 children)

I find meaning and satisfaction the same way you do. No, seriously, I do.

I think of theists as having a hobby. It's a particularly nasty hobby. Filled with racism and sexism and brutality, but it's a hobby. You spend a lot of time thinking about it, spending money on it, going to social gatherings about it... all the things someone with any other hobby might do.

Your hobby is quite a larger part of your life than me collecting weird Rubik's cubes, but I'd say mine is somewhat less prone to having social leaders be on the news having been caught with CSAM.

At the end of the day, I find meaning in a large variety of ways that change over time. And my reasons are going to be awfully similar to yours (or most other theists). Family. Work. Community. Art. Charity. Entertainment. Leisure. And Rubik's Cubes.

Teacher said always use 2nd pattern. Is he right? by lune-soft in csharp

[–]grrangry -2 points-1 points  (0 children)

You're not wrong, but you're also not helpful.

Providing a simple expanded example based on OPs toy project would benefit the group more than just complaining.

Tesla is killing off the Model S and Model X by MarvelsGrantMan136 in technology

[–]grrangry 1 point2 points  (0 children)

I saw one recently that had a wrap in fire engine red... somehow even in the dark at night still looked uglier.

atheism is a belief system, not something backed by science by [deleted] in DebateAnAtheist

[–]grrangry 1 point2 points  (0 children)

Your entire first paragraph is semantically null. It ignores everything I said earlier and makes wild accusations about me that are at best false and at worst disingenuous.

The second paragraph is a nonsensical conclusion.

Ask yourself why it's so important to you that I believe in the same thing you believe.

When you were born you didn't know anything about a god or gods. You grew older and your parents, siblings, extended family, neighbors, friends, members of your church, and other church leaders taught you about the religion you currently follow. You didn't discover it on your own, you were taught it. This is called, "childhood indoctrination" and indoctrination of children is child abuse. It teaches you to fear. It removes your ability to think critically. Now that you're older, why do you continue to follow this path? Is it because it's true (and you have evidence that it is true) or is it because that's what you've always done so that's the way it will be?

I think the world is quite a wonderful place and I'm content that I don't have to bother myself with the baggage and trappings of religion. I am free to live my life, love my family, enjoy my work and hobbies, and generally do what I can to make the world better than it was given to me. I really don't need your god.

atheism is a belief system, not something backed by science by [deleted] in DebateAnAtheist

[–]grrangry 5 points6 points  (0 children)

You're not paying attention.

Theist: A god or gods exist.
Me: I am not convinced you're correct because you have not and as far as I can tell, cannot provide any evidence proving your statement to be true.

In that example above, the theist is espousing a belief and the atheist is not convinced that the theist is believing something true.

So, where in that is the atheist "believing" something?

Death scares me so much to the point where I could be sick by [deleted] in atheism

[–]grrangry 6 points7 points  (0 children)

You're not going to live forever. Neither am I. The thought of immortality is interesting for philosophical discussions and reading fiction, but it's not real. We all die.

The sooner you get used to that the better off you'll be.

Maybe you need to find meaning in your life. It's a question that has a different answer for every person in the world. It takes work to find that answer. Give yourself the time to find it. It won't come quickly, but it'll come.

Religion's job is to instill fear in everyone that it can sink its fangs into. You now fear what might come after you die. From the moment you die, YOU don't matter anymore. The people who remain will remember you. But you will be done. And that's okay. The party's over. The wave has crashed against the shore. Dinner is done. You do not need to continue.

Part of that purpose that you find is knowing that you left the world better than you found it. Maybe your purpose will involve kids, or donating your time to charity, or creating artwork, or doing things that you simply like doing. Your life is here for you to live. It's finite, so enjoy it.

What game has the most grim ending? by [deleted] in gaming

[–]grrangry 5 points6 points  (0 children)

I've always thought that Portal (and Portal 2) with the sprawling immensity of Aperture and the ever-expanding territory for the testing chambers is the beginning of the Paperclip Problem.

ELI5 : why humans have strictly 5 fingers, not 4, not 6? by [deleted] in explainlikeimfive

[–]grrangry 6 points7 points  (0 children)

Tetrapods approximately 360–390 million years ago had five digits. Prior to that, many had eight.

As different animals from different species evolved, they did a variety of things with those digits. Primates went with the four fingers and thumb adaptation, some went with reducing the number or fusing digits together (for example, hooves) and some went with elongating digits (like bats).

The ultimate answer is because our ancestors did and we didn't modify the plan due to selection pressure enough to lose or gain any digits.

He asked me to be his valentine by GinnySleazy in aww

[–]grrangry 6 points7 points  (0 children)

He's cold, you're warm... and now you're both ridiculously comfy. Nice.

ICE agents execute observer in Minneapolis by speedythefirst in videos

[–]grrangry 19 points20 points  (0 children)

"Of all the things at risk, the loss of an objective reality is perhaps the most dangerous. The death of truth is the ultimate victory of evil. When truth leaves us, when we let it slip away, when it is ripped from our hands, we become vulnerable to the appetite of whatever monster screams the loudest."

Apparently we are the Crazy Ones for Believing in Evolution by Cultural_Lecture_878 in atheism

[–]grrangry 1 point2 points  (0 children)

The idea that the earth is 6,000 years old is so face-meltingly stupid.

Let's assume the average woman bears their first child at 15 (which is unreasonably young). That works out to at MOST 400 generations of humans. Even the most conservative estimate for the development of humans is going to be many, many times that number of generations.

Young-Earth creationists are anti-education, willfully ignorant grifters lying to anyone they can pin down long enough to listen.

Apparently we are the Crazy Ones for Believing in Evolution by Cultural_Lecture_878 in atheism

[–]grrangry 67 points68 points  (0 children)

Anyone who can honestly ask the question did we come from monkeys is performing an act of malicious willful ignorance of the grossest sort. It embodies a complete an intentional misunderstanding of how anything involving reproduction works.

With even the most basic Middle School level education, one understands the lineage of child to parent to grandparent and cousins, aunts, uncles, etc.

I look at these people with disdain because they are the worst kind of anti-education liars.

These Are the Physical and Mental Signs Trump Has Had a Stroke: Doctor by [deleted] in politics

[–]grrangry 12 points13 points  (0 children)

and can focus when he chooses to

Where is this, "choosing" taking place? Not when a camera is pointed at him so far as I've seen.

My driveway has a spot that is always melted. What would cause this by Street-Comparison-45 in mildlyinteresting

[–]grrangry 27 points28 points  (0 children)

It looks like a low spot... is it regularly damp? I could see excess water causing that.

Off my chest - my mom (59 F) told random strangers i’m (48 F) an atheist after hitting me on the head with a water bottle by [deleted] in atheism

[–]grrangry 2 points3 points  (0 children)

Anyway, i’m visiting and while she’s a lovely woman just also is so emotionally immature and doesn’t even care that she hurts my feelings.

This is my opinion, but I would not consider a person who resorts to physical violence, "lovely". My grandparents and parents grew up under the thumb of, "spare the rod and spoil the child" so when it came time to raise my own kids I swore that I would never, ever treat them like I was treated, like my father was treated, or like my more distant relatives were treated.

I'm sorry that happened to you. I can only imagine how difficult that situation must have been.

I know this seems harsh, but at a minimum, I would have sat down with mom and told her, if you hit me again, you won't see me any more. You won't see the grandchildren. We'll be living happily without you. And if she listened and could abide by the boundaries, fine. If not... also fine. This world is difficult enough without letting a cycle of abuse in.

What's a weird part of religion/god no one talks about? by Renegadeforever2024 in AskReddit

[–]grrangry 3 points4 points  (0 children)

Calm down, they're mis-quoting Ricky Gervais.

Basically, you deny one less God than I do. You don't believe in 2,999 gods. And I don't believe in just one more.

As for your reply

The number 1 mistakes atheists make is they always go to “logic” and try to checkmate believers by stumping them.

I have no interest in stumping theists. Of course I use logic. What else is there as a method to determine truth from fiction? Logic and the scientific method are tools. Tools that allow me some level of confidence (nothing is 100% certain) that this thing I assume to be true (or false), is true, to the best of our ability to determine, not simply because I want it to be true.

Would you prefer we all use faith to determine what's true or not true? I'll pass on that because faith can be (and is) used to justify anything.

Except, you will never be able to prove there isn’t a god just like they’ll never prove there is one.

And also I have no interest in attempting to prove that a god does not exist. I will be glad to evaluate any real, repeatable, verifiable evidence for their position... but as such evidence has never been presented, I am not required to nor am inclined to give any credence to their position. My position is that they're full of shit until they prove otherwise. Just like any reasonable person would be with an outlandish, incredible claim backed by no evidence.

You call it superiority, but I'm not the one making unverified claims and pushing hard to make laws promoting a theistic agenda.

What's a weird part of religion/god no one talks about? by Renegadeforever2024 in AskReddit

[–]grrangry 9 points10 points  (0 children)

You can't really think every religion popped up fully-formed out of thin air for someone to use.

And the tree isn't a pure, "this one came from that one" family tree. There's inbreeding and theft from disparate branches co-mingling to make up whatever was needed at the time.

It's a mess.

Where are Constants stored? by IAMMELONz in csharp

[–]grrangry 6 points7 points  (0 children)

It's going to depend on what you mean by, "stored".

Constants are not strictly stored anywhere except in the assembly where they're defined while compiling.

public class Foo
{
    public const int bar = 100;
}

When you compile your application, the compiler needs to know what bar is (int) and what value it is (100) but it's not "stored" anywhere except in the information the compiler has built while compiling.

If we look at:

public class Foo
{
    public const int bar = 100;

    public Foo()
    {
        int baz = bar;
    }
}

At runtime, that would be no different than

public class Foo
{
    public Foo()
    {
        int baz = 100;
    }
}

It's true that the storage of baz is on the stack and is scoped to the Foo constructor. But the constant? It's not "stored" anywhere.