61 Vector2 c1 = ( Point1 + Point2 ) * 0.5;
62 Vector2 d1 = ( Point2 - Point1 ).Perpendicular();
67 Vector2 c3 = ( Point2 + Point3 ) * 0.5;
68 Vector2 d3 = ( Point3 - Point2 ).Perpendicular();
73 Real IntersectX = ( b2 * g1 - b1 * g2 ) / ( b1 * a2 - b2 * a1 );
74 Real IntersectY = ( a2 * g1 - a1 * g2 ) / ( a1 * b2 - a2 * b1 );
76 Vector2 Intersect(IntersectX,IntersectY);
79 this->
Radius = ( Intersect - Point1 ).Length();
89 {
return ( Point - this->
Center ).Length() < this->
Radius; }
bool Boole
Generally acts a single bit, true or false.
Boole IsInside(const Vector2 &Point) const
Gets whether or not a point is inside this circle.
Real Radius
The radius of the circle.
float Real
A Datatype used to represent a real floating point number.
Real Y
Coordinate on the Y vector.
Real X
Coordinate on the X vector.
This is used to represent a point on a 2 dimentional area, such as a screen.
void SetIdentity()
Sets the values of this vector2 to identity values(0,0).
~Circle()
Class destructor.
The bulk of the engine components go in this namspace.
Circle()
Class constructor.
Vector2 Center
The center point of the circle.