Class: Geom::BoundingBox

Inherits:
Object show all
Defined in:
lib/boundingbox.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) add



3
4
# File 'lib/boundingbox.rb', line 3

def add
end

- (Geom::Point3d) center

The center point of the BoundingBox

Returns:



7
8
# File 'lib/boundingbox.rb', line 7

def center
end

- (Object) clear



9
10
# File 'lib/boundingbox.rb', line 9

def clear
end

- (Boolean) contains?

Returns:

  • (Boolean)


11
12
# File 'lib/boundingbox.rb', line 11

def contains?
end

- (Geom::Point3d) corner(n)

Returns the location of the BoundingBox corner at n

0 = [0, 0, 0] (left front bottom)
1 = [1, 0, 0] (right front bottom)
2 = [0, 1, 0] (left back bottom)
3 = [1, 1, 0] (right back bottom)
4 = [0, 0, 1] (left front top)
5 = [1, 0, 1] (right front top)
6 = [0, 1, 1] (left back top)
7 = [1, 1, 1] (right back top)

Parameters:

  • n (Integer)

    a number between 0 and 7

Returns:

  • (Geom::Point3d)

    the position of the corner at n, if successful



27
28
# File 'lib/boundingbox.rb', line 27

def corner(n)
end

- (Object) depth



30
31
# File 'lib/boundingbox.rb', line 30

def depth
end

- (Object) diagonal



32
33
# File 'lib/boundingbox.rb', line 32

def diagonal
end

- (Boolean) empty?

Returns:

  • (Boolean)


34
35
# File 'lib/boundingbox.rb', line 34

def empty?
end

- (Object) height



36
37
# File 'lib/boundingbox.rb', line 36

def height
end

- (Object) intersect



38
39
# File 'lib/boundingbox.rb', line 38

def intersect
end

- (Object) max



40
41
# File 'lib/boundingbox.rb', line 40

def max
end

- (Object) min



42
43
# File 'lib/boundingbox.rb', line 42

def min
end

- (Object) new



44
45
# File 'lib/boundingbox.rb', line 44

def new
end

- (Boolean) valid?

Returns:

  • (Boolean)


46
47
# File 'lib/boundingbox.rb', line 46

def valid?
end

- (Object) width



48
49
# File 'lib/boundingbox.rb', line 48

def width
end