![]() ![]() Gets or sets the Y component of this Vector3D structure. Gets or sets the X component of this Vector3D structure. Gets the square of the length of this Vector3D structure. Gets the length of this Vector3D structure. Initializes a new instance of a Vector3D structure. The Z component of this Vector3D structure. The Y component of this Vector3D structure. The X component of this Vector3D structure. VectorResult2 = Vector3D.Subtract(vector1, vector2) Subtracting vectors using static Subtract method Subtracting vectors using overload - operator ![]() Declaring vector2 without initializing x,y,z values Vector3D vector1 = new Vector3D(20, 30, 40) Declaring vector1 and initializing x,y,z values ![]() Subtracts two 3-D Vectors using the Subtract method and. The Vector3D structures are subtracted using the overloaded ( -) operator, and then they are subtracted using the static Subtract method. First, the Vector3D structures are instantiated. The following code shows how to use the Vector3D subtraction methods. This example shows how to subtract Vector3D structures using the overloaded subtraction ( -) operator and the Vector3D static Subtract method. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |