Skip to content

Instantly share code, notes, and snippets.

View chuwilliamson's full-sized avatar
:octocat:

Matthew Williamson chuwilliamson

:octocat:
View GitHub Profile
#pragma once
#include "Application.h"
#include <Renderer2D.h>
class RPG_Application : public aie::Application
{
public:
RPG_Application();
virtual ~RPG_Application();
bool startup() override;
@chuwilliamson
chuwilliamson / pointinrect.py
Created April 12, 2019 14:01
Write a function that will validate whether a point is inside of a rectangle. The design of the implementation is yours however you must justify why you made that decision. FYI: This will be something you use later, a lot . Pm for example.
class Rect(object):
def __init__(self, x, y , width, height):
'''thestuff'''
def Contains(self, point):
return point.'''thestuff'''
/// <summary>
/// Check points in this list for slope
/// uses dot product for clarity
/// points must be in order to form lines
/// </summary>
/// <param name="points">points to check</param>
/// <returns>points with slope</returns>
List<Vector3> PointsWithNoSlope(List<Vector3> points)
{
var result = new List<Vector3>();