Size.h
#pragma once
namespace Robotics
{
[ System::ComponentModel::TypeConverter( System::ComponentModel::ExpandableObjectConverter::typeid ) ]
public value class Size
{
public:
Size( double x, double y, double z );
explicit Size( System::Xml::XmlElement^ element );
public:
bool IsZero();
virtual System::String^ ToString() override;
public:
Size operator*=( double val );
Size operator/=( double val );
bool Equals( Size% obj ) new;
static bool operator==( Size% left, Size% right );
static bool operator!=( Size% left, Size% right );
static Size operator*( Size% obj, double val );
static Size operator/( Size% obj, double val );
private:
double m_x;
double m_y;
double m_z;
public:
property double X
{
double get()
{
return m_x;
}
void set( double value )
{
m_x = value;
}
}
property double Y
{
double get()
{
return m_y;
}
void set( double value )
{
m_y = value;
}
}
property double Z
{
double get()
{
return m_z;
}
void set( double value )
{
m_z = value;
}
}
};
}