Cross-platform C SDK logo

Cross-platform C SDK

2D Size

❮ Back
Next ❯
This page has been automatically translated using the Google Translate API services. We are working on improving texts. Thank you for your understanding and patience.

Functions

S2Ds2d (...)

Types and Constants

S2DkZERO

The S2Df, S2Dd structure stores information about a measure or size in two dimensions using its fields width and height.

  • Use s2df to compose a measure through its elementary fields.
  • Drawing the length and width of a 2d object.
    Figure 1: Size2D.

kZERO

const S2Df kS2D_ZEROf;

const S2Dd kS2D_ZEROd;

const S2D S2D::kZERO;

[0,0] value.


s2d ()

Create a 2d size from two values.

S2Df
s2df(const real32_t width,
     const real32_t height);

S2Dd
s2dd(const real64_t width,
     const real64_t height);

S2D
S2D(const real width,
    const real height);
width

Width.

height

Height.

Return

The size.

❮ Back
Next ❯