Panda3D
pnmBrush.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file pnmBrush.I
10  * @author drose
11  * @date 2007-02-01
12  */
13 
14 /**
15  *
16  */
17 INLINE PNMBrush::
18 PNMBrush(float xc, float yc) : _xc(xc), _yc(yc) {
19 }
20 
21 /**
22  * Returns the coordinates of the brush's center pixel. For a one-pixel
23  * brush, this will be (0.5, 0.5); for a centered two-pixel brush, this will
24  * be (1.0, 1.0); for a centered three-pixel brush, this will be (1.5, 1.5);
25  * and so on.
26  */
27 INLINE float PNMBrush::
28 get_xc() const {
29  return _xc;
30 }
31 
32 /**
33  * Returns the coordinates of the brush's center pixel. For a one-pixel
34  * brush, this will be (0.5, 0.5); for a centered two-pixel brush, this will
35  * be (1.0, 1.0); for a centered three-pixel brush, this will be (1.5, 1.5);
36  * and so on.
37  */
38 INLINE float PNMBrush::
39 get_yc() const {
40  return _yc;
41 }
float get_yc() const
Returns the coordinates of the brush's center pixel.
Definition: pnmBrush.I:39
float get_xc() const
Returns the coordinates of the brush's center pixel.
Definition: pnmBrush.I:28