LibreOffice Module basegfx (master) 1
b3dpoint.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
24
25namespace basegfx
26{
27 class B3DHomMatrix;
28
38 {
39 public:
45 {}
46
61 B3DPoint(double fX, double fY, double fZ)
62 : B3DTuple(fX, fY, fZ)
63 {}
64
68 B3DPoint(const ::basegfx::B3DTuple& rTuple)
69 : B3DTuple(rTuple)
70 {}
71
75 {
76 mfX *= rPnt.mfX;
77 mfY *= rPnt.mfY;
78 mfZ *= rPnt.mfZ;
79 return *this;
80 }
81
85 {
86 mfX *= t;
87 mfY *= t;
88 mfZ *= t;
89 return *this;
90 }
91
95 B3DPoint& operator=( const ::basegfx::B3DTuple& rVec )
96 {
97 mfX = rVec.getX();
98 mfY = rVec.getY();
99 mfZ = rVec.getZ();
100 return *this;
101 }
102
108 B3DPoint& operator*=( const ::basegfx::B3DHomMatrix& rMat );
109 };
110
111 // external operators
112
113
120
121} // end of namespace basegfx
122
123/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XPropertyListType t
#define BASEGFX_DLLPUBLIC
Definition: basegfxdllapi.h:35
Base Point class with three double values.
Definition: b3dpoint.hxx:38
B3DPoint & operator*=(const B3DPoint &rPnt)
*=operator to allow usage from B3DPoint, too
Definition: b3dpoint.hxx:74
B3DPoint(double fX, double fY, double fZ)
Create a 3D Point.
Definition: b3dpoint.hxx:61
B3DPoint & operator=(const ::basegfx::B3DTuple &rVec)
assignment operator to allow assigning the results of B3DTuple calculations
Definition: b3dpoint.hxx:95
B3DPoint & operator*=(double t)
*=operator to allow usage from B3DPoint, too
Definition: b3dpoint.hxx:84
B3DPoint(const ::basegfx::B3DTuple &rTuple)
constructor with tuple to allow copy-constructing from B3DTuple-based classes
Definition: b3dpoint.hxx:68
B3DPoint()
Create a 3D Point.
Definition: b3dpoint.hxx:44
Base class for all Points/Vectors with three double values.
Definition: b3dtuple.hxx:40
B2DPoint operator*(const ::basegfx::B2DHomMatrix &rMat, const B2DPoint &rPoint)
Definition: b2dpoint.cxx:43
double mfY
double mfX
#define SAL_WARN_UNUSED
SmFace & operator*=(SmFace &rFace, const Fraction &rFrac)