SIVector3

Object Hierarchy | 関連する C++クラス:CVector3

説明

倍精度浮動小数点の x、y、z座標で示される 3エレメントベクトルです。この API では、ベクトルは、「Foley, J., and A. van Dam, Fundamentals of Interactive Computer Graphics, Addison-Wesley, Reading, MA, 1982」に記述されているように行ベクトルと見なされます。このことは、SIVector3を SIMatrix3または SIMatrix4と乗算する際に重要となります。

メソッド

Absolute AbsoluteInPlace Add AddInPlace
Angle Clamp ClampInPlace Copy
Cross Dot EpsilonEquals Equals
Get Get2 Length LengthSquared
LinearlyInterpolate MaxComponent MaxComponentIndex MinComponent
MinComponentIndex MulByMatrix3 MulByMatrix3InPlace MulByMatrix4
MulByMatrix4InPlace MulByRotation MulByRotationInPlace MulByTransformation
MulByTransformationInPlace Negate NegateInPlace Normalize
NormalizeInPlace Scale ScaleAdd ScaleAddInPlace
ScaleInPlace Set SetNull Sub
SubInPlace      
       

プロパティ

Value X Y Z

1. VBScript の例

dim v1

' Create 3D vector.

set v1 = XSIMath.CreateVector3

v1.x = 1.5

v1.y = v1.x + 2.0

v1(2) = v1.y - 1.0

2. VBScript の例

set cone = ActiveProject.ActiveScene.Root.AddGeometry("Cone", "NurbsSurface")

' set the transform with rotation values

set transfo = XSIMath.CreateTransform

transfo.SetRotationFromXYZAnglesValues 45.0, 0.0, -60.0

' get back the rotation euler values

transfo.GetRotationXYZAnglesValues rotX, rotY, rotZ

Application.LogMessage "rot X: " & rotX & " rot Y: " & rotY & " rot Z: " & rotZ

関連項目

XSIMath.CreateVector3 SIVector3.Set SIVector3 SIMatrix3 SIMatrix4 SIRotation SITransformation SIQuaternion