# Point4D.Offset(Double, Double, Double, Double) Método

## Definición

``````public:
void Offset(double deltaX, double deltaY, double deltaZ, double deltaW);``````
``public void Offset (double deltaX, double deltaY, double deltaZ, double deltaW);``
``member this.Offset : double * double * double * double -> unit``
``Public Sub Offset (deltaX As Double, deltaY As Double, deltaZ As Double, deltaW As Double)``

#### Parámetros

deltaX
Double

Cantidad por la que se va a desplazar la coordenada X de esta estructura Point4D.The amount to offset the X coordinate of this Point4D structure.

deltaY
Double

Cantidad por la que se va a desplazar la coordenada Y de esta estructura Point4D.The amount to offset the Y coordinate of this Point4D structure.

deltaZ
Double

Cantidad por la que se va a desplazar la coordenada Z de esta estructura Point4D.The amount to offset the Z coordinate of this Point4D structure.

deltaW
Double

Cantidad por la que se va a desplazar la coordenada W de esta estructura Point4D.The amount to offset the W coordinate of this Point4D structure.

## Ejemplos

En el ejemplo siguiente se muestra cómo desplazar una estructura de Point4D.The following example shows how to offset a Point4D structure.

``````// Offsets the X, Y, Z, and W values of a Point4D.

Point4D point1 = new Point4D(10, 5, 1, 4);

point1.Offset(20, 30, 40, 50);
// point1 is equal to (30, 35, 41, 54)

// Displaying Results
syntaxString = "point1.Offset(20, 30, 41, 54);";
resultType = "Point4D";
operationString = "Offsetting a Point4D";
ShowResults(point1.ToString(), syntaxString, resultType, operationString);
``````
``````' Offsets the X, Y, Z, and W values of a Point4D.

Dim point1 As New Point4D(10, 5, 1, 4)

point1.Offset(20, 30, 40, 50)
' point1 is equal to (30, 35, 41, 54)

' Displaying Results
syntaxString = "point1.Offset(20, 30, 41, 54)"
resultType = "Point4D"
operationString = "Offsetting a Point4D"
ShowResults(point1.ToString(), syntaxString, resultType, operationString)
``````