Class: Silicium::Geometry3d::Point3d

Inherits:
Struct
  • Object
show all
Defined in:
lib/geometry3d.rb

Overview

Represents a point as three coordinates in three-dimensional space

Instance Attribute Summary collapse

Instance Attribute Details

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



11
12
13
# File 'lib/geometry3d.rb', line 11

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



11
12
13
# File 'lib/geometry3d.rb', line 11

def y
  @y
end

#zObject

Returns the value of attribute z

Returns:

  • (Object)

    the current value of z



11
12
13
# File 'lib/geometry3d.rb', line 11

def z
  @z
end