## LSL Wiki : DotOperator

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl338.us.archive.org
The dot operator (.) is used to access individual members of structures. LSL only supports two types of structures: vector and rotation.

```rotation a;
a.x = 0.0;```

if you were to write them as classes in C++ it would look something like this
```class rotation
{
public:
float x,y,z,s;
rotation(void);
rotation operator * (const rotation & q);
rotation operator / (const rotation & q);
list operator + (const list & q);
rotation & operator *= (const rotation & q){this = this * q; return this;};
rotation & operator /= (const rotation & q){this = this / q; return this;};
};

class vector
{
public:
float x,y,z;
vector(void);
vector operator + (const vector & q);
vector operator - (const vector & q);
vector operator % (const vector & q);
vector operator * (const rotation & q);
vector operator / (const rotation & q);
vector operator * (const float & q);
vector operator / (const float & q);
vector operator * (const integer & q);
vector operator / (const integer & q);
list operator + (const LSLList & q);
vector & operator += (const vector & q){this = this + q; return this;};
vector & operator -= (const vector & q){this = this - q; return this;};
vector & operator %= (const vector & q){this = this % q; return this;};
vector & operator *= (const rotation & q){this = this * q; return this;};
vector & operator /= (const rotation & q){this = this / q; return this;};
vector & operator *= (const float & q){this = this * q; return this;};
vector & operator /= (const float & q){this = this / q; return this;};
vector & operator *= (const integer & q){this = this * q; return this;};
vector & operator /= (const integer & q){this = this / q; return this;};
};```

Jasa SEO Jasa SEO Murah Sepatu Online Toko Sepatu Online Sepatu Sepatu Murah Sepatu Safety Sepatu Futsal Cheapes Hostgator Coupon Link Booking Televisori offerte Notebook Offerte Berita Terkini Internet Marketer Muda Internet Marketer Indonesia Portatile Apple RDAnet Lorks Karikatur Bisnis Modal Kecil Bisnis UKM Berita Terbaru Iklan Baris Jasa SEO Jasa SEO Murah SEO Indonesia Konsultan SEO SEO Belajar SEO Kursus SEO Kursus SEO Murah Jam Tangan Casio Jam Tangan Casio Jam Tangan Murah Jam Tangan Grosir Baju Terbaru Grosir Baju Baju Terbaru Grosir Baju Murah Bisnis Online Belajar SEO Kerupuk Kerupuk kulit Social Bookmark Dofollow Social Bookmark Kumpulan Puisi Kirim Puisi bola hantu Penumbuh Rambut Penumbuh Rambut timbangan WBC Wonogiri Jasa SEO Murah Jasa SEO Jam Tangan Murah