Click or drag to resize

Vec3D Class

The Vec3D object represents a position in a 2D or 3D space.
Inheritance Hierarchy
SystemObject
  Sfs2X.Entities.DataVec3D

Namespace:  Sfs2X.Entities.Data
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public class Vec3D

The Vec3D type exposes the following members.

Constructors
  NameDescription
Public methodVec3D(Int32, Int32)
Creates a new Vec3D instance for a 2D coordinates system with integer values.
Public methodVec3D(Single, Single)
Creates a new Vec3D instance for a 2D coordinates system with float values.
Public methodVec3D(Int32, Int32, Int32)
Creates a new Vec3D instance for a 3D coordinates system with integer values.
Public methodVec3D(Single, Single, Single)
Creates a new Vec3D instance for a 3D coordinates system with float values.
Top
Properties
  NameDescription
Public propertyFloatX
Returns the position along the X axis as a float value.
Public propertyFloatY
Returns the position along the Y axis as a float value.
Public propertyFloatZ
Returns the position along the Z axis as a float value.
Public propertyIntX
Returns the position along the X axis as an integer value.
Public propertyIntY
Returns the position along the Y axis as an integer value.
Public propertyIntZ
Returns the position along the Z axis as an integer value.
Top
Methods
  NameDescription
Public methodIsFloat
Indicates whether the position is expressed using floating point values or not.
Top
Remarks
This class is used to express a position inside a virtual environment with no specific unit of measure (could be pixels, feet, meters, etc).

Positions along the X,Y,Z axes can be expressed as Integers or Floats, based on the game's coordinate system requirements.

See Also