Object Hierarchy | Related C++ Class: CVector3
A 3 element vector that is represented by double precision floating point x,y,z coordinates. In this API vectors are considered as row vectors as described in [Foley, J., and A. van Dam, Fundamentals of Interactive Computer Graphics, Addison-Wesley, Reading, MA, 1982]. This is important when you multiply a SIVector3 by a SIMatrix3 or a SIMatrix4.
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 |
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