Rect3D.Offset Rect3D.Offset Rect3D.Offset Rect3D.Offset Method

定義

取得或設定位移值,其中會解譯 Rect3D 的位置。Gets or sets an offset value by which the location of a Rect3D is translated.

多載

Offset(Rect3D, Double, Double, Double) Offset(Rect3D, Double, Double, Double) Offset(Rect3D, Double, Double, Double) Offset(Rect3D, Double, Double, Double)

取得或設定位移值,其中會解譯 Rect3D 的位置。Gets or sets an offset value by which the location of a Rect3D is translated.

Offset(Double, Double, Double) Offset(Double, Double, Double) Offset(Double, Double, Double) Offset(Double, Double, Double)

取得或設定位移值,其中會解譯 Rect3D 的位置。Gets or sets an offset value by which the location of a Rect3D is translated.

Offset(Vector3D) Offset(Vector3D) Offset(Vector3D) Offset(Vector3D)

Rect3D 的位移平移設為提供的值 (以 Vector3D 指定)。Sets the offset translation of the Rect3D to the provided value, specified as a Vector3D.

Offset(Rect3D, Vector3D) Offset(Rect3D, Vector3D) Offset(Rect3D, Vector3D) Offset(Rect3D, Vector3D)

取得或設定位移值,其中會解譯 Rect3D 的位置。Gets or sets an offset value by which the location of a Rect3D is translated.

Offset(Rect3D, Double, Double, Double) Offset(Rect3D, Double, Double, Double) Offset(Rect3D, Double, Double, Double) Offset(Rect3D, Double, Double, Double)

取得或設定位移值,其中會解譯 Rect3D 的位置。Gets or sets an offset value by which the location of a Rect3D is translated.

public:
 static System::Windows::Media::Media3D::Rect3D Offset(System::Windows::Media::Media3D::Rect3D rect, double offsetX, double offsetY, double offsetZ);
public static System.Windows.Media.Media3D.Rect3D Offset (System.Windows.Media.Media3D.Rect3D rect, double offsetX, double offsetY, double offsetZ);
static member Offset : System.Windows.Media.Media3D.Rect3D * double * double * double -> System.Windows.Media.Media3D.Rect3D
Public Shared Function Offset (rect As Rect3D, offsetX As Double, offsetY As Double, offsetZ As Double) As Rect3D

參數

rect
Rect3D Rect3D Rect3D Rect3D

要平移的 Rect3D。Rect3D to be translated.

offsetX
Double Double Double Double

沿著 X 軸的位移。Offset along the X axis.

offsetY
Double Double Double Double

沿著 Y 軸的位移。Offset along the Y axis.

offsetZ
Double Double Double Double

沿著 Z 軸的位移。Offset along the Z axis.

傳回

Rect3D 值,表示位移結果。A Rect3D value that represents the result of the offset.

備註

Rect3D通常用來表示MeshGeometry3DModel3D的界限。Rect3D is typically used to represent the bounds of a MeshGeometry3D or Model3D.

Offset(Double, Double, Double) Offset(Double, Double, Double) Offset(Double, Double, Double) Offset(Double, Double, Double)

取得或設定位移值,其中會解譯 Rect3D 的位置。Gets or sets an offset value by which the location of a Rect3D is translated.

public:
 void Offset(double offsetX, double offsetY, double offsetZ);
public void Offset (double offsetX, double offsetY, double offsetZ);
member this.Offset : double * double * double -> unit
Public Sub Offset (offsetX As Double, offsetY As Double, offsetZ As Double)

參數

offsetX
Double Double Double Double

沿著 X 軸的位移。Offset along the X axis.

offsetY
Double Double Double Double

沿著 Y 軸的位移。Offset along the Y axis.

offsetZ
Double Double Double Double

沿著 Z 軸的位移。Offset along the Z axis.

備註

Rect3D通常用來表示MeshGeometry3DModel3D的界限。Rect3D is typically used to represent the bounds of a MeshGeometry3D or Model3D.

請注意, 只有Offset當您可以直接X變更、和Z屬性時, Y呼叫方法才會生效。Note that calling the Offset method will only have an effect if you can change the X, Y, and Z properties directly. 由於Rect3D是實值型別, 如果您使用Rect3D屬性或索引子來參考物件, 則會取得物件的複本, 而不是物件的參考。Because Rect3D is a value type, if you reference a Rect3D object by using a property or indexer, you get a copy of the object, not a reference to the object. 如果您嘗試在屬性XY索引子Z參考上變更、或, 就會發生編譯器錯誤。If you attempt to change X, Y, or Z on a property or indexer reference, a compiler error occurs. 同樣地, Offset在屬性或索引子上呼叫, 將不會變更基礎物件。Similarly, calling Offset on the property or indexer will not change the underlying object. 如果您想要變更當做屬性或索引Rect3D器參考的值, 請建立新Rect3D的、修改其欄位Rect3D , 然後將傳回給屬性或索引子。If you want to change the value of a Rect3D that is referenced as a property or indexer, create a new Rect3D, modify its fields, and then assign the Rect3D back to the property or indexer.

Offset(Vector3D) Offset(Vector3D) Offset(Vector3D) Offset(Vector3D)

Rect3D 的位移平移設為提供的值 (以 Vector3D 指定)。Sets the offset translation of the Rect3D to the provided value, specified as a Vector3D.

public:
 void Offset(System::Windows::Media::Media3D::Vector3D offsetVector);
public void Offset (System.Windows.Media.Media3D.Vector3D offsetVector);
member this.Offset : System.Windows.Media.Media3D.Vector3D -> unit
Public Sub Offset (offsetVector As Vector3D)

參數

offsetVector
Vector3D Vector3D Vector3D Vector3D

Vector3D,指定位移 (Offset) 平移。Vector3D that specifies the offset translation.

備註

Rect3D通常用來表示MeshGeometry3DModel3D的界限。Rect3D is typically used to represent the bounds of a MeshGeometry3D or Model3D.

請注意, 只有Offset當您可以直接X變更、和Z屬性時, Y呼叫方法才會生效。Note that calling the Offset method will only have an effect if you can change the X, Y, and Z properties directly. 由於Rect3D是實值型別, 如果您使用Rect3D屬性或索引子來參考物件, 則會取得物件的複本, 而不是物件的參考。Because Rect3D is a value type, if you reference a Rect3D object by using a property or indexer, you get a copy of the object, not a reference to the object. 如果您嘗試在屬性XY索引子Z參考上變更、或, 就會發生編譯器錯誤。If you attempt to change X, Y, or Z on a property or indexer reference, a compiler error occurs. 同樣地, Offset在屬性或索引子上呼叫, 將不會變更基礎物件。Similarly, calling Offset on the property or indexer will not change the underlying object. 如果您想要變更當做屬性或索引Rect3D器參考的值, 請建立新Rect3D的、修改其欄位Rect3D , 然後將傳回給屬性或索引子。If you want to change the value of a Rect3D that is referenced as a property or indexer, create a new Rect3D, modify its fields, and then assign the Rect3D back to the property or indexer.

Offset(Rect3D, Vector3D) Offset(Rect3D, Vector3D) Offset(Rect3D, Vector3D) Offset(Rect3D, Vector3D)

取得或設定位移值,其中會解譯 Rect3D 的位置。Gets or sets an offset value by which the location of a Rect3D is translated.

public:
 static System::Windows::Media::Media3D::Rect3D Offset(System::Windows::Media::Media3D::Rect3D rect, System::Windows::Media::Media3D::Vector3D offsetVector);
public static System.Windows.Media.Media3D.Rect3D Offset (System.Windows.Media.Media3D.Rect3D rect, System.Windows.Media.Media3D.Vector3D offsetVector);
static member Offset : System.Windows.Media.Media3D.Rect3D * System.Windows.Media.Media3D.Vector3D -> System.Windows.Media.Media3D.Rect3D
Public Shared Function Offset (rect As Rect3D, offsetVector As Vector3D) As Rect3D

參數

rect
Rect3D Rect3D Rect3D Rect3D

要解譯的 Rect3DRect3D to be translated.

offsetVector
Vector3D Vector3D Vector3D Vector3D

Vector3D,指定位移 (Offset) 平移。Vector3D that specifies the offset translation.

傳回

Rect3D 值,表示位移結果。A Rect3D value that represents the result of the offset.

備註

Rect3D通常用來表示MeshGeometry3DModel3D的界限。Rect3D is typically used to represent the bounds of a MeshGeometry3D or Model3D.

適用於