SpotLight.CoordinateSpace プロパティ

定義

ライトの方向とオフセットを決定するために使用されるビジュアル。 ライトのオフセットプロパティと方向プロパティは、このビジュアルの座標空間に対して相対的です。 SpotLight.CoordinateSpace は必須のプロパティです。 SpotLight.CoordinateSpace が設定されていない場合、SpotLight はレンダリングされません。

public:
 property Visual ^ CoordinateSpace { Visual ^ get(); void set(Visual ^ value); };
Visual CoordinateSpace();

void CoordinateSpace(Visual value);
public Visual CoordinateSpace { get; set; }
var visual = spotLight.coordinateSpace;
spotLight.coordinateSpace = visual;
Public Property CoordinateSpace As Visual

プロパティ値

ライトのオフセットが基準となるビジュアル。

_spotLight.CoordinateSpace = root;  

注釈

SpotLight.Offset SpotLight.Direction は、 Spotlight.CoordiateSpace を基準にしています。 すべてのビジュアルには、次のように定義された暗黙的な 3D 座標空間があります。

X 軸は、ビジュアルの左端から右端まで実行されます。Y 軸は、ビジュアルの上部から下部まで実行されます。Z 軸は、ビジュアルに対してパーパンディキュラーです。

X の方向は、左から右です。 Y の方向は、上から下です。 Z 方向は平面の外を指しています。 この座標の元のポイントはビジュアルの左上隅で、単位は DIP です。 ライトのオフセットと方向は、この座標で定義されます。

適用対象

こちらもご覧ください