![]() |
Jypeli
5
The simple game programming library
|
Suorakulmio. Lisää...
Julkiset jäsenfunktiot | |
| override bool | IsInside (double x, double y) |
| Onko piste muodon sisällä. Pisteen koordinaatiston origo on muodon keskellä. Muoto on kokoa 1x1 jos IsUnitSize, muuten saman kokoinen kuin olio. Lisää... | |
Ominaisuudet | |
| override bool | IsUnitSize [get] |
Ominaisuudet inherited from Shape | |
| abstract bool | IsUnitSize [get] |
| If true, the shape must be scaled by the size of the object that has the shape. Typically, an unit-sized object has width and height of 1.0. Lisää... | |
Additional Inherited Members | |
Staattiset julkiset jäsenfunktiot inherited from Shape | |
| static Shape | FromImage (Image image) |
| Luo kuvion annetusta kuvasta. Kuvassa tulee olla vain yksi yhtenäinen muoto (toisin sanoen kuvio ei voi koostua monesta osasta). Lisää... | |
| static Shape | FromString (string shapeStr) |
| Luo muodon merkkijonosta, esim. "Circle" Lisää... | |
| static Shape | CreateRegularPolygon (int vertexCount) |
| Luo säännöllisen monikulmion (polygonin) Lisää... | |
Staattiset julkiset attribuutit inherited from Shape | |
| static readonly Ellipse | Circle = new Ellipse() |
| Ympyrä tai ellipsi. Lisää... | |
| static readonly Ellipse | Ellipse = new Ellipse() |
| Ellipsi tai ympyrä. Lisää... | |
| static readonly Rectangle | Rectangle = new Rectangle() |
| Suorakulmio. Lisää... | |
| static readonly Triangle | Triangle = new Triangle() |
| Tasasivuinen kolmio. Lisää... | |
| static readonly Heart | Heart = new Heart() |
| Sydän. Lisää... | |
| static readonly Star | Star = new Star() |
| Tähti. Lisää... | |
| static readonly Shape | Diamond = new RegularPolygon(4) |
| Timantti- / salmiakkikuvio Lisää... | |
| static readonly Shape | Pentagon = new RegularPolygon( 5 ) |
| Pentagoni eli viisikulmio. Lisää... | |
| static readonly Shape | Hexagon = new RegularPolygon( 6 ) |
| Heksagoni eli kuusikulmio. Lisää... | |
| static readonly Shape | Octagon = new RegularPolygon( 8 ) |
| Oktagoni eli kahdeksankulmio. Lisää... | |
Suojatut jäsenfunktiot inherited from Shape | |
| bool | IsInsideTriangles (Vector p) |
| bool | IsInsideOutlines (Vector p) |
| bool | IsInsideCircle (double x, double y, double r) |
Staattiset suojatut jäsenfunktiot inherited from Shape | |
| static bool | SameSide (Vector a, Vector b, Vector p1, Vector p2) |
| static bool | IsInsideTriangle (Vector p, Vector a, Vector b, Vector c) |
|
virtual |