Click or drag to resize

UVCoords Class

Defines the texture coordinates for a square. Used for the image and box visuals.
Inheritance Hierarchy
SystemObject
  System.DynamicDynamicObject
    NotifyPropertyChangedBase
      Demo3D.VisualsUVCoords

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public class UVCoords : NotifyPropertyChangedBase, ICloneable

The UVCoords type exposes the following members.

Constructors
  NameDescription
Public methodUVCoords
Default constructor for UVCoords given which sets the range to be (0,0) to (1,1).
Public methodUVCoords(Single, Single, Single, Single)
Constructor for UVCoords given all parameters.
Top
Properties
  NameDescription
Public propertyU0
The left texture coordinate (defaults to 0).
Public propertyU1
The right texture coordinate (defaults to 1).
Public propertyV0
The top texture coordinate (defaults to 0).
Public propertyV1
The bottom texture coordinate (defaults to 1).
Top
Methods
  NameDescription
Public methodClone
Create a cloned copy of the UVCoords.
Top
Remarks
UVCoords start at the top left (0,0) and finish at the bottom right (1,1). These coordinates can repeat so (-1,-1,1,1) or (0,0,2,2) will tile the texture four times in a 2x2 pattern.
See Also