Represents a point on a cubemap face with 64-bit floating-point precision.
struct
|
CubemapFaceCoordsD
|
implements
|
IEquatable<CubemapFaceCoordsD>
|
Undefined set of cubemap face coordinates.
public
static
readonly
field
|
Undefined
|
||
type
|
CubemapFaceCoordsD
|
See also:
IsUndefinedCoordinates
(0,0)
on
NegZ.
public
static
readonly
field
|
Zero
|
||
type
|
CubemapFaceCoordsD
|
The cubemap face.
public
readonly
field
|
Face
|
||
type
|
CubemapFace
|
Is this an undefined set of cubemap face coordinates?
public
property
|
IsUndefined
{
get
}
|
||
type
|
bool
|
||
value
|
true
if
the
coordinates
are
undefined,
false
if
not. |
See also:
UndefinedCubemap face X-coordinate.
public
readonly
field
|
X
|
||
type
|
float64
|
Returns the face X- and Y-coordinates.
public
property
|
XY
{
get
}
|
||
type
|
Vec2D
|
||
value
|
The coordinates. |
Cubemap face Y-coordinate.
public
readonly
field
|
Y
|
||
type
|
float64
|
Creates a new instance of CubemapFaceCoordsD.
public
constructor
|
CubemapFaceCoordsD
(float64 x,
float64 y,
CubemapFace face)
|
||
params
|
x
|
Cubemap face X-coordinate. | |
y
|
Cubemap face Y-coordinate. | ||
face
|
The cubemap face. |
Clips these coordinates at the given bounds.
public
method
|
Clip
(int32 width,
int32 height)
|
||
type
|
CubemapFaceCoordsD
|
||
params
|
width
|
[>0]
|
Width of clip bounds. |
height
|
[>0]
|
Height of clip bounds. | |
returns
|
The resulting coordinates. |
public
method
|
Equals
(CubemapFaceCoordsD other)
|
||
type
|
bool
|
||
params
|
other
|
[Pure]
|
||||
public
override
method
|
ToString
()
|
|||
type
|
string
|
Wraps these coordinates around the cubemap edges if necessary.
public
method
|
Wrap
(int32 n)
|
||
type
|
CubemapFaceCoordsD
|
||
params
|
n
|
Maximum cubemap coordinate. | |
returns
|
The resulting coordinates. |