Simple dx render example.
This commit is contained in:
parent
36515556b8
commit
e0cad34d55
22 changed files with 339 additions and 60 deletions
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "DiscretePoint.h"
|
||||
#include "Vector.h"
|
||||
|
||||
#include <memory>
|
||||
#include <cmath>
|
||||
|
@ -27,25 +28,17 @@ public:
|
|||
|
||||
double getDistance(const Point& point) const;
|
||||
|
||||
double getDistance(Point* point) const;
|
||||
|
||||
double getDeltaX(const Point& point) const;
|
||||
|
||||
double getDeltaY(const Point& point) const;
|
||||
|
||||
void scale(double x, double y, double z = 1.0)
|
||||
{
|
||||
mX = x*mX;
|
||||
mY = y*mY;
|
||||
mZ = z*mZ;
|
||||
}
|
||||
double getDeltaZ(const Point& point) const;
|
||||
|
||||
void translate(double x, double y, double z = 0.0)
|
||||
{
|
||||
mX += x;
|
||||
mY += y;
|
||||
mZ += z;
|
||||
}
|
||||
Vector getDelta(const Point& point) const;
|
||||
|
||||
void scale(double x, double y, double z = 1.0);
|
||||
|
||||
void translate(double x, double y, double z = 0.0);
|
||||
|
||||
bool operator==(const Point& rhs) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue