Jypeli 10
The simple game programming library
AdvanceMath.Geometry2D.BoundingPolygon luokkareferenssi

Julkiset jäsenfunktiot

 BoundingPolygon (Vector2D[] vertexes)
 
ContainmentType Contains (BoundingCircle circle)
 
ContainmentType Contains (BoundingPolygon polygon)
 
ContainmentType Contains (BoundingRectangle rect)
 
void Contains (ref BoundingCircle circle, out ContainmentType result)
 
void Contains (ref BoundingPolygon polygon, out ContainmentType result)
 
void Contains (ref BoundingRectangle rect, out ContainmentType result)
 
void Contains (ref Vector2D point, out ContainmentType result)
 
ContainmentType Contains (Vector2D point)
 
void GetDistance (ref Vector2D point, out Scalar result)
 
Scalar GetDistance (Vector2D point)
 
bool Intersects (BoundingCircle circle)
 
bool Intersects (BoundingPolygon polygon)
 
bool Intersects (BoundingRectangle rect)
 
Scalar Intersects (Ray ray)
 
void Intersects (ref BoundingCircle circle, out bool result)
 
void Intersects (ref BoundingPolygon polygon, out bool result)
 
void Intersects (ref BoundingRectangle rect, out bool result)
 
void Intersects (ref Ray ray, out Scalar result)
 

Staattiset julkiset jäsenfunktiot

static void ContainsExclusive (Vector2D[] vertexes, ref Vector2D point, out ContainmentType result)
 
static ContainmentType ContainsExclusive (Vector2D[] vertexes, Vector2D point)
 
static void ContainsInclusive (Vector2D[] vertexes, ref Vector2D point, out ContainmentType result)
 
static ContainmentType ContainsInclusive (Vector2D[] vertexes, Vector2D point)
 
static Scalar GetArea (Vector2D[] vertexes)
 Calculates the area of a polygon. Lisää...
 
static void GetArea (Vector2D[] vertexes, out Scalar result)
 Calculates the area of a polygon. Lisää...
 
static Vector2D GetCentroid (Vector2D[] vertexes)
 Calculates the Centroid of a polygon. Lisää...
 
static void GetCentroid (Vector2D[] vertexes, out Vector2D centroid)
 Calculates the Centroid of a polygon. Lisää...
 
static void GetDistance (Vector2D[] vertexes, ref Vector2D point, out Scalar result)
 
static Scalar GetDistance (Vector2D[] vertexes, Vector2D point)
 
static Scalar GetInertia (Vector2D[] vertexes)
 
static void GetInertia (Vector2D[] vertexes, out Scalar result)
 
static Scalar GetPerimeter (Vector2D[] vertexes)
 
static void GetPerimeter (Vector2D[] vertexes, out Scalar result)
 
static bool Intersects (Vector2D[] vertexes1, Vector2D[] vertexes2)
 
static void Intersects (Vector2D[] vertexes1, Vector2D[] vertexes2, out bool result)
 

Ominaisuudet

Scalar Area [get]
 
Scalar Perimeter [get]
 
Vector2D[] Vertexes [get]
 

Yksityiset jäsenfunktiot

void Contains (Vector2D[] otherVertexes, out ContainmentType result)
 

Yksityiset attribuutit

Vector2D[] vertexes
 

Yksityiskohtainen selite

Määrittely tiedoston BoundingPolygon.cs rivillä 38.

Rakentajien & purkajien dokumentaatio

◆ BoundingPolygon()

AdvanceMath.Geometry2D.BoundingPolygon.BoundingPolygon ( Vector2D[]  vertexes)

Määrittely tiedoston BoundingPolygon.cs rivillä 328.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.vertexes.

Jäsenfunktioiden dokumentaatio

◆ Contains() [1/9]

ContainmentType AdvanceMath.Geometry2D.BoundingPolygon.Contains ( BoundingCircle  circle)

Määrittely tiedoston BoundingPolygon.cs rivillä 380.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Contains().

◆ Contains() [2/9]

ContainmentType AdvanceMath.Geometry2D.BoundingPolygon.Contains ( BoundingPolygon  polygon)

Määrittely tiedoston BoundingPolygon.cs rivillä 416.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Contains().

◆ Contains() [3/9]

ContainmentType AdvanceMath.Geometry2D.BoundingPolygon.Contains ( BoundingRectangle  rect)

Määrittely tiedoston BoundingPolygon.cs rivillä 405.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Contains().

◆ Contains() [4/9]

void AdvanceMath.Geometry2D.BoundingPolygon.Contains ( ref BoundingCircle  circle,
out ContainmentType  result 
)

Määrittely tiedoston BoundingPolygon.cs rivillä 386.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.GetDistance().

◆ Contains() [5/9]

void AdvanceMath.Geometry2D.BoundingPolygon.Contains ( ref BoundingPolygon  polygon,
out ContainmentType  result 
)

Määrittely tiedoston BoundingPolygon.cs rivillä 422.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Contains().

◆ Contains() [6/9]

void AdvanceMath.Geometry2D.BoundingPolygon.Contains ( ref BoundingRectangle  rect,
out ContainmentType  result 
)

Määrittely tiedoston BoundingPolygon.cs rivillä 411.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Contains().

◆ Contains() [7/9]

void AdvanceMath.Geometry2D.BoundingPolygon.Contains ( ref Vector2D  point,
out ContainmentType  result 
)

◆ Contains() [8/9]

ContainmentType AdvanceMath.Geometry2D.BoundingPolygon.Contains ( Vector2D  point)

◆ Contains() [9/9]

◆ ContainsExclusive() [1/2]

static void AdvanceMath.Geometry2D.BoundingPolygon.ContainsExclusive ( Vector2D[]  vertexes,
ref Vector2D  point,
out ContainmentType  result 
)
static

◆ ContainsExclusive() [2/2]

◆ ContainsInclusive() [1/2]

static void AdvanceMath.Geometry2D.BoundingPolygon.ContainsInclusive ( Vector2D[]  vertexes,
ref Vector2D  point,
out ContainmentType  result 
)
static

◆ ContainsInclusive() [2/2]

◆ GetArea() [1/2]

static Scalar AdvanceMath.Geometry2D.BoundingPolygon.GetArea ( Vector2D[]  vertexes)
static

Calculates the area of a polygon.

Parametrit
vertexesThe vertexes of the polygon.
Palauttaa
the area.

Määrittely tiedoston BoundingPolygon.cs rivillä 242.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.GetArea() ja AdvanceMath.Geometry2D.BoundingPolygon.vertexes.

Viitattu AdvanceMath.Geometry2D.BoundingPolygon.GetArea(), Jypeli.Physics2d.VertexHelper.GetArea() ja Jypeli.Physics2d.VertexHelper.GetAreaOfRange().

◆ GetArea() [2/2]

static void AdvanceMath.Geometry2D.BoundingPolygon.GetArea ( Vector2D[]  vertexes,
out Scalar  result 
)
static

Calculates the area of a polygon.

Parametrit
vertexesThe vertexes of the polygon.
resultthe area.

Määrittely tiedoston BoundingPolygon.cs rivillä 253.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.vertexes ja AdvanceMath.Vector2D.ZCross().

◆ GetCentroid() [1/2]

static Vector2D AdvanceMath.Geometry2D.BoundingPolygon.GetCentroid ( Vector2D[]  vertexes)
static

Calculates the Centroid of a polygon.

Parametrit
vertexesThe vertexes of the polygon.
Palauttaa
The Centroid of a polygon.

This is Also known as Center of Gravity/Mass.

Määrittely tiedoston BoundingPolygon.cs rivillä 202.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.GetCentroid() ja AdvanceMath.Geometry2D.BoundingPolygon.vertexes.

Viitattu Jypeli.Physics2d.VertexHelper.CenterVertexes(), AdvanceMath.Geometry2D.BoundingCircle.FromVectors(), AdvanceMath.Geometry2D.BoundingPolygon.GetCentroid() ja Jypeli.Physics2d.VertexHelper.GetCentroid().

◆ GetCentroid() [2/2]

static void AdvanceMath.Geometry2D.BoundingPolygon.GetCentroid ( Vector2D[]  vertexes,
out Vector2D  centroid 
)
static

Calculates the Centroid of a polygon.

Parametrit
vertexesThe vertexes of the polygon.
centroidThe Centroid of a polygon.

This is Also known as Center of Gravity/Mass.

Määrittely tiedoston BoundingPolygon.cs rivillä 216.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.vertexes, AdvanceMath.Vector2D.ZCross() ja AdvanceMath.Vector2D.Zero.

◆ GetDistance() [1/4]

void AdvanceMath.Geometry2D.BoundingPolygon.GetDistance ( ref Vector2D  point,
out Scalar  result 
)

◆ GetDistance() [2/4]

Scalar AdvanceMath.Geometry2D.BoundingPolygon.GetDistance ( Vector2D  point)

◆ GetDistance() [3/4]

static void AdvanceMath.Geometry2D.BoundingPolygon.GetDistance ( Vector2D[]  vertexes,
ref Vector2D  point,
out Scalar  result 
)
static

◆ GetDistance() [4/4]

static Scalar AdvanceMath.Geometry2D.BoundingPolygon.GetDistance ( Vector2D[]  vertexes,
Vector2D  point 
)
static

◆ GetInertia() [1/2]

static Scalar AdvanceMath.Geometry2D.BoundingPolygon.GetInertia ( Vector2D[]  vertexes)
static

◆ GetInertia() [2/2]

static void AdvanceMath.Geometry2D.BoundingPolygon.GetInertia ( Vector2D[]  vertexes,
out Scalar  result 
)
static

◆ GetPerimeter() [1/2]

static Scalar AdvanceMath.Geometry2D.BoundingPolygon.GetPerimeter ( Vector2D[]  vertexes)
static

◆ GetPerimeter() [2/2]

static void AdvanceMath.Geometry2D.BoundingPolygon.GetPerimeter ( Vector2D[]  vertexes,
out Scalar  result 
)
static

◆ Intersects() [1/10]

bool AdvanceMath.Geometry2D.BoundingPolygon.Intersects ( BoundingCircle  circle)

Määrittely tiedoston BoundingPolygon.cs rivillä 461.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Intersects().

◆ Intersects() [2/10]

bool AdvanceMath.Geometry2D.BoundingPolygon.Intersects ( BoundingPolygon  polygon)

Määrittely tiedoston BoundingPolygon.cs rivillä 467.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Intersects().

◆ Intersects() [3/10]

bool AdvanceMath.Geometry2D.BoundingPolygon.Intersects ( BoundingRectangle  rect)

Määrittely tiedoston BoundingPolygon.cs rivillä 455.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Intersects().

◆ Intersects() [4/10]

Scalar AdvanceMath.Geometry2D.BoundingPolygon.Intersects ( Ray  ray)

Määrittely tiedoston BoundingPolygon.cs rivillä 449.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Intersects().

◆ Intersects() [5/10]

void AdvanceMath.Geometry2D.BoundingPolygon.Intersects ( ref BoundingCircle  circle,
out bool  result 
)

◆ Intersects() [6/10]

void AdvanceMath.Geometry2D.BoundingPolygon.Intersects ( ref BoundingPolygon  polygon,
out bool  result 
)

Määrittely tiedoston BoundingPolygon.cs rivillä 507.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Intersects().

◆ Intersects() [7/10]

void AdvanceMath.Geometry2D.BoundingPolygon.Intersects ( ref BoundingRectangle  rect,
out bool  result 
)

Määrittely tiedoston BoundingPolygon.cs rivillä 488.

Viittaukset AdvanceMath.Geometry2D.BoundingPolygon.Intersects().

◆ Intersects() [8/10]

void AdvanceMath.Geometry2D.BoundingPolygon.Intersects ( ref Ray  ray,
out Scalar  result 
)

◆ Intersects() [9/10]

◆ Intersects() [10/10]

static void AdvanceMath.Geometry2D.BoundingPolygon.Intersects ( Vector2D[]  vertexes1,
Vector2D[]  vertexes2,
out bool  result 
)
static

Määrittely tiedoston BoundingPolygon.cs rivillä 109.

Viittaukset AdvanceMath.Geometry2D.LineSegment.Intersects().

Jäsendatan dokumentaatio

◆ vertexes

Ominaisuuksien dokumentaatio

◆ Area

Scalar AdvanceMath.Geometry2D.BoundingPolygon.Area
get

Määrittely tiedoston BoundingPolygon.cs rivillä 339.

◆ Perimeter

Scalar AdvanceMath.Geometry2D.BoundingPolygon.Perimeter
get

Määrittely tiedoston BoundingPolygon.cs rivillä 348.

◆ Vertexes

Vector2D [] AdvanceMath.Geometry2D.BoundingPolygon.Vertexes
get

Määrittely tiedoston BoundingPolygon.cs rivillä 334.


Dokumentaatio tälle luokalle luotiin seuraavasta tiedostosta: